Make TS deops appear to come from the same server the other modes come from.

In particular, this makes atheme changets deops come
from the services server instead of the user's server.
This commit is contained in:
Jilles Tjoelker 2008-09-24 23:13:10 +02:00
parent 8e28bf2936
commit e6a0717d15
1 changed files with 3 additions and 3 deletions

View File

@ -1184,7 +1184,7 @@ remove_our_modes(struct Channel *chptr, struct Client *source_p)
*mbuf = '\0'; *mbuf = '\0';
sendto_channel_local(ALL_MEMBERS, chptr, sendto_channel_local(ALL_MEMBERS, chptr,
":%s MODE %s %s %s %s %s %s", ":%s MODE %s %s %s %s %s %s",
me.name, chptr->chname, source_p->name, chptr->chname,
lmodebuf, lpara[0], lpara[1], lmodebuf, lpara[0], lpara[1],
lpara[2], lpara[3]); lpara[2], lpara[3]);
@ -1216,7 +1216,7 @@ remove_our_modes(struct Channel *chptr, struct Client *source_p)
*mbuf = '\0'; *mbuf = '\0';
sendto_channel_local(ALL_MEMBERS, chptr, sendto_channel_local(ALL_MEMBERS, chptr,
":%s MODE %s %s %s %s %s %s", ":%s MODE %s %s %s %s %s %s",
me.name, chptr->chname, lmodebuf, source_p->name, chptr->chname, lmodebuf,
lpara[0], lpara[1], lpara[2], lpara[3]); lpara[0], lpara[1], lpara[2], lpara[3]);
mbuf = lmodebuf; mbuf = lmodebuf;
*mbuf++ = '-'; *mbuf++ = '-';
@ -1232,7 +1232,7 @@ remove_our_modes(struct Channel *chptr, struct Client *source_p)
*mbuf = '\0'; *mbuf = '\0';
sendto_channel_local(ALL_MEMBERS, chptr, sendto_channel_local(ALL_MEMBERS, chptr,
":%s MODE %s %s %s %s %s %s", ":%s MODE %s %s %s %s %s %s",
me.name, chptr->chname, lmodebuf, source_p->name, chptr->chname, lmodebuf,
EmptyString(lpara[0]) ? "" : lpara[0], EmptyString(lpara[0]) ? "" : lpara[0],
EmptyString(lpara[1]) ? "" : lpara[1], EmptyString(lpara[1]) ? "" : lpara[1],
EmptyString(lpara[2]) ? "" : lpara[2], EmptyString(lpara[2]) ? "" : lpara[2],