From e6a0717d15ceffef1e1dd4b8b75b8c73a780f0ed Mon Sep 17 00:00:00 2001 From: Jilles Tjoelker Date: Wed, 24 Sep 2008 23:13:10 +0200 Subject: [PATCH] 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. --- modules/core/m_join.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/core/m_join.c b/modules/core/m_join.c index 2f51663..9aea435 100644 --- a/modules/core/m_join.c +++ b/modules/core/m_join.c @@ -1184,7 +1184,7 @@ remove_our_modes(struct Channel *chptr, struct Client *source_p) *mbuf = '\0'; sendto_channel_local(ALL_MEMBERS, chptr, ":%s MODE %s %s %s %s %s %s", - me.name, chptr->chname, + source_p->name, chptr->chname, lmodebuf, lpara[0], lpara[1], lpara[2], lpara[3]); @@ -1216,7 +1216,7 @@ remove_our_modes(struct Channel *chptr, struct Client *source_p) *mbuf = '\0'; sendto_channel_local(ALL_MEMBERS, chptr, ":%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]); mbuf = lmodebuf; *mbuf++ = '-'; @@ -1232,7 +1232,7 @@ remove_our_modes(struct Channel *chptr, struct Client *source_p) *mbuf = '\0'; sendto_channel_local(ALL_MEMBERS, chptr, ":%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[1]) ? "" : lpara[1], EmptyString(lpara[2]) ? "" : lpara[2],