diff options
| author | 2006-12-14 20:35:21 +0000 | |
|---|---|---|
| committer | 2006-12-14 20:35:21 +0000 | |
| commit | 458a3297e436bcc9546f4e1377910c88c4478c3e (patch) | |
| tree | 33f32e12a1b56138d5c2af9819a2b30342b69f1b /src/channels.cpp | |
| parent | Remove FlushWriteBuffer() from DoBackgroundUserStuff(). Its no longer require... (diff) | |
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
Diffstat (limited to 'src/channels.cpp')
| -rw-r--r-- | src/channels.cpp | 3 |
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; |
