ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/trunk/src/user.c
(Generate patch)

Comparing ircd-hybrid/trunk/src/user.c (file contents):
Revision 3944 by michael, Mon Jun 16 18:04:03 2014 UTC vs.
Revision 4020 by michael, Fri Jun 20 16:17:27 2014 UTC

# Line 286 | Line 286 | introduce_client(struct Client *source_p
286    char ubuf[IRCD_BUFSIZE] = "";
287  
288    if (MyClient(source_p))
289 <    send_umode(source_p, source_p, 0, SEND_UMODES, ubuf);
289 >    send_umode(source_p, source_p, 0, ubuf);
290    else
291 <    send_umode(NULL, source_p, 0, SEND_UMODES, ubuf);
291 >    send_umode(NULL, source_p, 0, ubuf);
292  
293    watch_check_hash(source_p, RPL_LOGON);
294  
# Line 803 | Line 803 | valid_nickname(const char *nickname, con
803   */
804   void
805   send_umode(struct Client *client_p, struct Client *source_p,
806 <           unsigned int old, unsigned int sendmask, char *umode_buf)
806 >           unsigned int old, char *umode_buf)
807   {
808    char *m = umode_buf;
809    int what = 0;
# Line 819 | Line 819 | send_umode(struct Client *client_p, stru
819      if (!flag)
820        continue;
821  
822    if (MyClient(source_p) && !(flag & sendmask))
823      continue;
824
822      if ((flag & old) && !HasUMode(source_p, flag))
823      {
824        if (what == MODE_DEL)
# Line 866 | Line 863 | send_umode_out(struct Client *client_p,
863   {
864    char buf[IRCD_BUFSIZE] = "";
865  
866 <  send_umode(NULL, source_p, old, SEND_UMODES, buf);
866 >  send_umode(NULL, source_p, old, buf);
867  
868    if (buf[0])
869      sendto_server(source_p, NOCAPS, NOCAPS, ":%s MODE %s :%s",
870                    source_p->id, source_p->id, buf);
871  
872    if (client_p && MyClient(client_p))
873 <    send_umode(client_p, source_p, old, 0xffffffff, buf);
873 >    send_umode(client_p, source_p, old, buf);
874   }
875  
876   void

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)