summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/config.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/config.cpp b/src/config.cpp
index f96027453..7d96fdbed 100644
--- a/src/config.cpp
+++ b/src/config.cpp
@@ -338,6 +338,8 @@ Conf::Conf() : Block("")
if (!c)
continue; // Can't happen
+ c->Extend("BOTCHANNEL");
+
/* Remove all existing modes */
ChanUserContainer *cu = c->FindUser(bi);
if (cu != NULL)
@@ -373,7 +375,10 @@ Conf::Conf() : Block("")
Channel *c = Channel::Find(chname);
if (c)
+ {
+ c->Shrink("BOTCHANNEL");
bi->Part(c);
+ }
}
}