Committer : entrope
CVSROOT : /cvsroot/undernet-ircu
Module : ircu2.10
Commit time: 2005-04-27 12:42:43 UTC
Modified files:
ircd/s_user.c
Log message:
Properly handle classes with no "usermodes" option; count always-invisible
users.
---------------------- diff included ----------------------
Index: ircu2.10/ircd/s_user.c
diff -u ircu2.10/ircd/s_user.c:1.93 ircu2.10/ircd/s_user.c:1.94
--- ircu2.10/ircd/s_user.c:1.93 Mon Apr 25 20:49:33 2005
+++ ircu2.10/ircd/s_user.c Wed Apr 27 05:42:25 2005
@@ -22,7 +22,7 @@
*/
/** @file
* @brief Miscellaneous user-related helper functions.
- * @version $Id: s_user.c,v 1.93 2005/04/26 03:49:33 entrope Exp $
+ * @version $Id: s_user.c,v 1.94 2005/04/27 12:42:25 entrope Exp $
*/
#include "config.h"
@@ -611,7 +611,8 @@
/*
* Set user's initial modes
*/
- for (tmpstr = (char*)client_get_default_umode(sptr); *tmpstr; ++tmpstr) {
+ tmpstr = (char*)client_get_default_umode(sptr);
+ if (tmpstr) for (; *tmpstr; ++tmpstr) {
switch (*tmpstr) {
case 's':
if (!feature_bool(FEAT_HIS_SNOTICES_OPER_ONLY)) {
@@ -625,6 +626,7 @@
break;
case 'i':
SetInvisible(sptr);
+ ++UserStats.inv_clients;
break;
case 'd':
SetDeaf(sptr);
----------------------- End of diff -----------------------
_______________________________________________
Patches mailing list
[email protected]
http://undernet.sbg.org/mailman/listinfo/patches