From 458a3297e436bcc9546f4e1377910c88c4478c3e Mon Sep 17 00:00:00 2001 From: brain Date: Thu, 14 Dec 2006 20:35:21 +0000 Subject: Fix silly bug of the day. User was only getting a userrec::chans entry added if they had any privelages on the channel. If they werent opped, voiced, or halfopped on join, no entry in the hash. Silly brain now added a: user->chans[Ptr] = 0; :p git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5990 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/channels.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/channels.cpp') 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; -- cgit v1.3.1-10-gc9f91