fixed renameAccount function (merging mode)
[NeonServV5.git] / src / WHOHandler.c
index 7a8a3548ea359fa5aee74e48fc84e25e1d4ab8f5..3294e3802f3a244575dc0a1901795f379138f16e 100644 (file)
@@ -1,4 +1,4 @@
-/* WHOHandler.c - NeonServ v5.5
+/* WHOHandler.c - NeonServ v5.6
  * Copyright (C) 2011-2012  Philipp Kreil (pk910)
  * 
  * This program is free software: you can redistribute it and/or modify
@@ -30,7 +30,7 @@
 #define WHOQUEUETYPE_CHECKTYPE 0x07
 #define WHOQUEUETYPE_FOUND     0x08
 
-#define MAXCALLBACKS 3
+#define MAXCALLBACKS 10
 
 struct WHOQueueEntry {
     char type;
@@ -215,7 +215,7 @@ void get_userauth(struct UserNode *user, int module_id, userauth_callback_t call
         callback(bot, user->nick, NULL, data);
         return;
     }
-    if((user->flags & (USERFLAG_ISAUTHED | USERFLAG_ISIRCOP | USERFLAG_ISBOT | USERFLAG_ISSERVER)) || (time(0) - user->last_who) <= REWHO_TIMEOUT) {
+    if((user->flags & (USERFLAG_ISAUTHED | USERFLAG_ISSERVER)) || (time(0) - user->last_who) <= REWHO_TIMEOUT) {
         callback(bot, user->nick, user, data);
         return;
     }