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