From b83765d756c2568d15b87654963b5237d0482367 Mon Sep 17 00:00:00 2001 From: brain Date: Wed, 23 Aug 2006 20:29:09 +0000 Subject: Spotted problem: must clear out all prefixes attached to a user when they quit or leave a channel Next thing to do, consider removing of opped_userlist, halfopped_userlist and voiced_userlist as this data is now in the prefixlist git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4998 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/users.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/users.cpp') diff --git a/src/users.cpp b/src/users.cpp index 3953db233..3b02e82b9 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -1744,6 +1744,7 @@ void userrec::PurgeEmptyChannels() ucrec* uc = *f; if (uc->channel) { + uc->channel->RemoveAllPrefixes(this); if (uc->channel->DelUser(this) == 0) { /* No users left in here, mark it for deletion */ -- cgit v1.3.1-10-gc9f91