https://svn.quakenet.org/svn/dev-com/N/trunk
........
r234 | strutsi | 2005-10-28 21:43:13 +0100 (Fri, 28 Oct 2005) | 2 lines
G 2.13 just a few bugfixes
........
Fixed a bug when adding bans to authed -x users
Added a rating command
Added missing command help for ?+ and ?-
+
+2.13
+Fixed the account expiration problem
+Fixed the empty censor pattern bug
{
haccount **ptr = &haccounts;
while (*ptr)
- if ((time(NULL) - (*ptr)->last_activity > HELPMOD_ACCOUNT_EXPIRATION[(*ptr)->level]) && !(*ptr)->flags & H_NO_EXPIRE)
+ if ((time(NULL) - (*ptr)->last_activity > HELPMOD_ACCOUNT_EXPIRATION[(*ptr)->level]) && !((*ptr)->flags & H_NO_EXPIRE))
haccount_del(*ptr);
else
ptr = &(*ptr)->next;
}
pattern = argv[0];
- SKIP_WORD;
- if (argc)
- reason = ostr;
+
+ if (strlen(pattern) == 0)
+ {
+ helpmod_reply(sender, returntype, "Cannot add censor entry: Pattern must be non-empty");
+ return;
+ }
+
+ SKIP_WORD;
+ if (argc && strlen(ostr) > 0)
+ reason = ostr;
else
reason = NULL;
/* configuration */
/* These should always be equal */
-#define HELPMOD_VERSION_INTERNAL HELPMOD_VERSION_2_12
-#define HELPMOD_VERSION "2.12"
+#define HELPMOD_VERSION_INTERNAL HELPMOD_VERSION_2_13
+#define HELPMOD_VERSION "2.13"
#define HELPMOD_USER_TIMEOUT 1200
#define HELPMOD_VERSION_2_12 12 /* */
+#define HELPMOD_VERSION_2_13 13 /* */
+
#endif