1
0
mirror of https://github.com/anope/anope.git synced 2026-07-03 14:03:12 +02:00

Added /chanserv clone command

This commit is contained in:
Adam
2010-11-15 18:03:50 -05:00
parent 2e9a632e14
commit 1625a5af0c
9 changed files with 271 additions and 9 deletions
+2 -2
View File
@@ -566,7 +566,7 @@ void Channel::SetMode(BotInfo *bi, ChannelMode *cm, const Anope::string &param,
else if (cm->Type == MODE_STATUS)
{
User *u = finduser(param);
if (u && HasUserStatus(u, debug_cast<ChannelModeStatus *>(cm)))
if (!u || HasUserStatus(u, debug_cast<ChannelModeStatus *>(cm)))
return;
}
else if (cm->Type == MODE_LIST)
@@ -607,7 +607,7 @@ void Channel::RemoveMode(BotInfo *bi, ChannelMode *cm, const Anope::string &para
else if (cm->Type == MODE_STATUS)
{
User *u = finduser(param);
if (u && !HasUserStatus(u, debug_cast<ChannelModeStatus *>(cm)))
if (!u || !HasUserStatus(u, debug_cast<ChannelModeStatus *>(cm)))
return;
}
else if (cm->Type == MODE_LIST)