summaryrefslogtreecommitdiff
path: root/src/channels.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/channels.cpp')
-rw-r--r--src/channels.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/channels.cpp b/src/channels.cpp
index 3f9391bea..8a857f4af 100644
--- a/src/channels.cpp
+++ b/src/channels.cpp
@@ -369,6 +369,9 @@ chanrec* chanrec::ForceChan(InspIRCd* Instance, chanrec* Ptr, userrec* user, con
Ptr->AddUser(user);
user->ModChannelCount(1);
+ /* Just in case they have no permissions */
+ user->chans[Ptr] = 0;
+
for (std::string::const_iterator x = privs.begin(); x != privs.end(); x++)
{
const char status = *x;