/[svn]/ircd-hybrid/branches/8.2.x/modules/core/m_join.c
ViewVC logotype

Diff of /ircd-hybrid/branches/8.2.x/modules/core/m_join.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 9073 by michael, Tue May 21 13:18:58 2019 UTC revision 9074 by michael, Sat Oct 5 18:18:22 2019 UTC
# Line 119  ms_join(struct Client *source_p, int par Line 119  ms_join(struct Client *source_p, int par
119    }    }
120    
121    newts   = strtoumax(parv[1], NULL, 10);    newts   = strtoumax(parv[1], NULL, 10);
122    oldts   = chptr->creationtime;    oldts   = chptr->creation_time;
123    oldmode = &chptr->mode;    oldmode = &chptr->mode;
124    
125    if (newts == 0 && isnew == false && oldts)    if (newts == 0 && isnew == false && oldts)
# Line 133  ms_join(struct Client *source_p, int par Line 133  ms_join(struct Client *source_p, int par
133    }    }
134    
135    if (isnew == true)    if (isnew == true)
136      chptr->creationtime = newts;      chptr->creation_time = newts;
137    else if (newts == 0 || oldts == 0)    else if (newts == 0 || oldts == 0)
138      chptr->creationtime = 0;      chptr->creation_time = 0;
139    else if (newts == oldts)    else if (newts == oldts)
140      ;      ;
141    else if (newts < oldts)    else if (newts < oldts)
142    {    {
143      keep_our_modes = false;      keep_our_modes = false;
144      chptr->creationtime = newts;      chptr->creation_time = newts;
145    }    }
146    else    else
147      keep_new_modes = false;      keep_new_modes = false;
# Line 210  ms_join(struct Client *source_p, int par Line 210  ms_join(struct Client *source_p, int par
210    }    }
211    
212    sendto_server(source_p, 0, 0, ":%s JOIN %ju %s +",    sendto_server(source_p, 0, 0, ":%s JOIN %ju %s +",
213                  source_p->id, chptr->creationtime, chptr->name);                  source_p->id, chptr->creation_time, chptr->name);
214    return 0;    return 0;
215  }  }
216    

Legend:
Removed from v.9073  
changed lines
  Added in v.9074

svnadmin@ircd-hybrid.org
ViewVC Help
Powered by ViewVC 1.1.28