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:
+2
-2
@@ -566,7 +566,7 @@ void Channel::SetMode(BotInfo *bi, ChannelMode *cm, const Anope::string ¶m,
|
||||
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 ¶
|
||||
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)
|
||||
|
||||
Reference in New Issue
Block a user