aboutsummaryrefslogtreecommitdiff
path: root/src/users.cpp
diff options
context:
space:
mode:
authorGravatar brain2007-09-30 18:14:51 +0000
committerGravatar brain2007-09-30 18:14:51 +0000
commit685a4c53199cf067d02dc6f7ed91d20d9f6ddd1e (patch)
tree01f01dbe0b699568a4f861b9242a6c578eedfcc0 /src/users.cpp
parentMinor change, param for local PING wasnt an SID and should be (diff)
Whoops, forgot some stuff for when GECOS was moved to position 10 in the UID command, this was broken
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8102 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/users.cpp')
-rw-r--r--src/users.cpp11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/users.cpp b/src/users.cpp
index 4f5c567d2..8ab475bd9 100644
--- a/src/users.cpp
+++ b/src/users.cpp
@@ -309,13 +309,18 @@ const char* userrec::FormatModes()
void userrec::DecrementModes()
{
- for (int n = 0; n < 64; n++)
+ ServerInstance->Log(DEBUG,"DecrementModes()");
+ for (unsigned char n = 'A'; n <= 'z'; n++)
{
- if (modes[n])
+ if (modes[n-65])
{
- ModeHandler* mh = ServerInstance->Modes->FindMode(n+65, MODETYPE_USER);
+ ServerInstance->Log(DEBUG,"DecrementModes() found mode %c", n);
+ ModeHandler* mh = ServerInstance->Modes->FindMode(n, MODETYPE_USER);
if (mh)
+ {
+ ServerInstance->Log(DEBUG,"Found handler %c and call ChangeCount", n);
mh->ChangeCount(-1);
+ }
}
}
}