diff options
author | Adam <Adam@anope.org> | 2013-08-25 21:33:52 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2013-08-25 21:33:52 -0400 |
commit | 714a4a3004062b3998d5ddd8518768ac87d9a7dd (patch) | |
tree | 1fb0bcd9c5c998dc0084032f2c519962bed869d6 /modules/pseudoclients/botserv.cpp | |
parent | 34826f71c78ea9ba3ae0613fb701c1b15073b58f (diff) |
Remove unnecesary mlock code in cs_mode, change mode set events to never bounce modes set by bots or servers, as it was possible to get modules to fight with each other
Diffstat (limited to 'modules/pseudoclients/botserv.cpp')
-rw-r--r-- | modules/pseudoclients/botserv.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/pseudoclients/botserv.cpp b/modules/pseudoclients/botserv.cpp index a016c9ef2..7a29b5a20 100644 --- a/modules/pseudoclients/botserv.cpp +++ b/modules/pseudoclients/botserv.cpp @@ -178,13 +178,13 @@ class BotServCore : public Module const Anope::string &fantasycharacters = Config->GetModule(this)->Get<const Anope::string>("fantasycharacter", "!"); if (!fantasycharacters.empty()) source.Reply(_("Additionally, if fantasy is enabled fantasy commands\n" - "can be executed by prefixing the command name with\n" + "can be executed by prefixing the command name with\n" "one of the following characters: %s"), fantasycharacters.c_str()); } - EventReturn OnChannelModeSet(Channel *c, MessageSource &, ChannelMode *mode, const Anope::string ¶m) anope_override + EventReturn OnChannelModeSet(Channel *c, MessageSource &source, ChannelMode *mode, const Anope::string ¶m) anope_override { - if (Config->GetModule(this)->Get<bool>("smartjoin") && mode->name == "BAN" && c->ci && c->ci->bi && c->FindUser(c->ci->bi)) + if (source.GetUser() && !source.GetBot() && Config->GetModule(this)->Get<bool>("smartjoin") && mode->name == "BAN" && c->ci && c->ci->bi && c->FindUser(c->ci->bi)) { BotInfo *bi = c->ci->bi; |