diff options
author | Adam <Adam@anope.org> | 2010-08-15 14:08:05 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2010-08-15 14:08:05 -0400 |
commit | c2a97d9f3f2d56d889875f9b60d1e2cbc9826d15 (patch) | |
tree | 5530abf6bdb54f8c32b1f681f6367536a412e262 /modules/protocol/ratbox.cpp | |
parent | a950ed8cabfeca55c909f02412b1788bd386dcff (diff) |
Cleanup of various different crashes/inconsistancies
Diffstat (limited to 'modules/protocol/ratbox.cpp')
-rw-r--r-- | modules/protocol/ratbox.cpp | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/modules/protocol/ratbox.cpp b/modules/protocol/ratbox.cpp index 623d5a31e..ff2a0f6c6 100644 --- a/modules/protocol/ratbox.cpp +++ b/modules/protocol/ratbox.cpp @@ -352,7 +352,7 @@ int anope_event_sjoin(const Anope::string &source, int ac, const char **av) ChannelMode *cm = ModeManager::FindChannelModeByChar(ch); if (!cm) { - Alog() << "Recieved unknown mode prefix " << buf[0] << " in SJOIN string"; + Alog() << "Received unknown mode prefix " << buf[0] << " in SJOIN string"; continue; } @@ -396,13 +396,7 @@ int anope_event_sjoin(const Anope::string &source, int ac, const char **av) { /* Unset the syncing flag */ c->UnsetFlag(CH_SYNCING); - - /* If there are users in the channel they are allowed to be, set topic mlock etc. */ - if (!c->users.empty()) - c->Sync(); - /* If there are no users in the channel, there is a ChanServ timer set to part the service bot - * and destroy the channel soon - */ + c->Sync(); } return MOD_CONT; |