summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authormichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2014-01-26 12:16:39 +0000
committermichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2014-01-26 12:16:39 +0000
commit4a9f7d2365a9e5dbce0492b2f194968f22b27d85 (patch)
tree14a5825956fd68e2068dc2061872cf54c888bae9 /modules
parentff062202847914e3cb76c0b2de72a92c4e05653d (diff)
- Clean up stupid pointer magic passed to the channel mode handlers.
git-svn-id: svn://svn.ircd-hybrid.org/svnroot/ircd-hybrid/branches/8.1.x@2938 82007160-df01-0410-b94d-b575c5fd34c7
Diffstat (limited to 'modules')
-rw-r--r--modules/core/m_mode.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/modules/core/m_mode.c b/modules/core/m_mode.c
index 4251aa0..cb9f6a8 100644
--- a/modules/core/m_mode.c
+++ b/modules/core/m_mode.c
@@ -97,8 +97,7 @@ m_mode(struct Client *client_p, struct Client *source_p,
* including telnet servers *g* - Dianora
*/
if (IsServer(source_p) || HasFlag(source_p, FLAGS_SERVICE))
- set_channel_mode(client_p, source_p, chptr, NULL, parc - 2, parv + 2,
- chptr->chname);
+ set_channel_mode(client_p, source_p, chptr, NULL, parc - 2, parv + 2);
else
{
member = find_channel_link(source_p, chptr);
@@ -110,8 +109,7 @@ m_mode(struct Client *client_p, struct Client *source_p,
if (!((parc == 3) && (parv[2][0] == 'b') && (parv[2][1] == '\0')))
flood_endgrace(source_p);
- set_channel_mode(client_p, source_p, chptr, member, parc - 2, parv + 2,
- chptr->chname);
+ set_channel_mode(client_p, source_p, chptr, member, parc - 2, parv + 2);
}
}
@@ -143,7 +141,7 @@ ms_tmode(struct Client *client_p, struct Client *source_p, int parc, char *parv[
return 0;
if (IsServer(source_p) || HasFlag(source_p, FLAGS_SERVICE))
- set_channel_mode(client_p, source_p, chptr, NULL, parc - 3, parv + 3, chptr->chname);
+ set_channel_mode(client_p, source_p, chptr, NULL, parc - 3, parv + 3);
else
{
member = find_channel_link(source_p, chptr);
@@ -152,7 +150,7 @@ ms_tmode(struct Client *client_p, struct Client *source_p, int parc, char *parv[
if (has_member_flags(member, CHFL_DEOPPED))
return 0;
- set_channel_mode(client_p, source_p, chptr, member, parc - 3, parv + 3, chptr->chname);
+ set_channel_mode(client_p, source_p, chptr, member, parc - 3, parv + 3);
}
return 0;