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

Comparing ircd-hybrid/branches/8.2.x/src/user.c (file contents):
Revision 4705 by michael, Sun Oct 5 16:25:18 2014 UTC vs.
Revision 4706 by michael, Sun Oct 5 16:42:47 2014 UTC

# Line 825 | Line 825 | send_umode(struct Client *client_p, stru
825   * side effects - Only send ubuf out to servers that know about this client
826   */
827   void
828 < send_umode_out(struct Client *client_p, struct Client *source_p,
829 <               unsigned int old)
828 > send_umode_out(struct Client *source_p, unsigned int old)
829   {
830    char buf[IRCD_BUFSIZE] = "";
831  
832 <  send_umode(NULL, source_p, old, buf);
832 >  send_umode(MyClient(source_p) ? source_p : NULL, source_p, old, buf);
833  
834    if (buf[0])
835      sendto_server(source_p, NOCAPS, NOCAPS, ":%s MODE %s :%s",
836                    source_p->id, source_p->id, buf);
838
839  if (client_p && MyClient(client_p))
840    send_umode(client_p, source_p, old, buf);
837   }
838  
839   void
# Line 965 | Line 961 | oper_up(struct Client *source_p)
961                         get_oper_name(source_p));
962    sendto_server(NULL, NOCAPS, NOCAPS, ":%s GLOBOPS :%s is now an operator",
963                  me.id, get_oper_name(source_p));
964 <  send_umode_out(source_p, source_p, old);
964 >  send_umode_out(source_p, old);
965    sendto_one_numeric(source_p, &me, RPL_YOUREOPER);
966   }
967  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines