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 |
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 |
|
|