Browse Source

* Bug in update_mod() (from a few commits ago)

svn: 367
Bryan Drewery 22 years ago
parent
commit
4783b4da2f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/userent.c

+ 1 - 1
src/userent.c

@@ -671,7 +671,7 @@ struct user_entry_type USERENTRY_STATS = {
 void update_mod(char *handle, char *nick, char *cmd, char *par)
 {
   char tmp[100];
-  snprintf(tmp, sizeof tmp, "%lu, %s (%s %s)", now, nick, cmd, par[0] ? par : "");
+  snprintf(tmp, sizeof tmp, "%lu, %s (%s %s)", now, nick, cmd, (par && par[0]) ? par : "");
   set_user(&USERENTRY_MODIFIED, get_user_by_handle(userlist, handle), tmp);
 }