diff options
author | Adam <Adam@anope.org> | 2013-06-01 14:55:45 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2013-06-01 14:55:45 -0400 |
commit | b56e71ab14b020a3a01f1fbd183382083156aaf4 (patch) | |
tree | 0a08e0f848697c9c8c708e2e2156ce6256481fe2 /modules/commands/cs_suspend.cpp | |
parent | 6f45d7249785b056ed78916d33ec45045a43ed92 (diff) |
Move CheckKick event to Channel and make os_forbid use it instead of kicking users in the join event, which does bad things
Diffstat (limited to 'modules/commands/cs_suspend.cpp')
-rw-r--r-- | modules/commands/cs_suspend.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/commands/cs_suspend.cpp b/modules/commands/cs_suspend.cpp index 98015a1f3..e366e5dc0 100644 --- a/modules/commands/cs_suspend.cpp +++ b/modules/commands/cs_suspend.cpp @@ -207,9 +207,9 @@ class CSSuspend : public Module catch (const ConvertException &) { } } - EventReturn OnCheckKick(User *u, ChannelInfo *ci, Anope::string &mask, Anope::string &reason) anope_override + EventReturn OnCheckKick(User *u, Channel *c, Anope::string &mask, Anope::string &reason) anope_override { - if (u->HasMode("OPER") || !ci->HasExt("SUSPENDED")) + if (u->HasMode("OPER") || !c->ci || !c->ci->HasExt("SUSPENDED")) return EVENT_CONTINUE; reason = Language::Translate(u, _("This channel may not be used.")); |