1
0
mirror of https://github.com/anope/anope.git synced 2026-07-09 04:03:13 +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
+9 -5
View File
@@ -71,11 +71,15 @@ class CommandCSRegister : public Command
if (c)
{
check_modes(c);
/* On most ircds you do not receive the admin/owner mode till its registered */
if ((cm = ModeManager::FindChannelModeByName(CMODE_OWNER)))
c->SetMode(NULL, cm, u->nick);
else if ((cm = ModeManager::FindChannelModeByName(CMODE_PROTECT)))
c->RemoveMode(NULL, cm, u->nick);
if (u->FindChannel(c) != NULL)
{
/* On most ircds you do not receive the admin/owner mode till its registered */
if ((cm = ModeManager::FindChannelModeByName(CMODE_OWNER)))
c->SetMode(NULL, cm, u->nick);
else if ((cm = ModeManager::FindChannelModeByName(CMODE_PROTECT)))
c->RemoveMode(NULL, cm, u->nick);
}
/* Mark the channel as persistant */
if (c->HasMode(CMODE_PERM))