mirror of
https://github.com/anope/anope.git
synced 2026-07-08 10:43:14 +02:00
Cleanup of various different crashes/inconsistancies
This commit is contained in:
@@ -398,7 +398,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() << "Receeved unknown mode prefix " << buf[0] << " in SJOIN string";
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -443,13 +443,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;
|
||||
|
||||
@@ -450,7 +450,7 @@ int anope_event_fjoin(const Anope::string &source, int ac, const char **av)
|
||||
|
||||
if (!cm)
|
||||
{
|
||||
Alog() << "Recieved unknown mode prefix " << buf[0] << " in FJOIN string";
|
||||
Alog() << "Received unknown mode prefix " << buf[0] << " in FJOIN string";
|
||||
buf.erase(buf.begin());
|
||||
continue;
|
||||
}
|
||||
@@ -496,13 +496,7 @@ int anope_event_fjoin(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;
|
||||
|
||||
@@ -496,7 +496,7 @@ int anope_event_fjoin(const Anope::string &source, int ac, const char **av)
|
||||
ChannelMode *cm = ModeManager::FindChannelModeByChar(buf[0]);
|
||||
if (!cm)
|
||||
{
|
||||
Alog() << "Recieved unknown mode prefix " << buf[0] << " in FJOIN string";
|
||||
Alog() << "Receeved unknown mode prefix " << buf[0] << " in FJOIN string";
|
||||
buf.erase(buf.begin());
|
||||
continue;
|
||||
}
|
||||
@@ -543,13 +543,7 @@ int anope_event_fjoin(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;
|
||||
|
||||
@@ -541,13 +541,7 @@ int anope_event_fjoin(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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -1084,7 +1084,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;
|
||||
}
|
||||
|
||||
@@ -1129,13 +1129,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;
|
||||
|
||||
Reference in New Issue
Block a user