Просмотр исходного кода

* Fixed cosmetic error in cmd_mns_mask

svn: 1234
Bryan Drewery 22 лет назад
Родитель
Сommit
2c5212896f
2 измененных файлов с 3 добавлено и 2 удалено
  1. 1 0
      doc/UPDATES
  2. 2 2
      src/mod/channels.mod/cmdschan.c

+ 1 - 0
doc/UPDATES

@@ -35,6 +35,7 @@ This is a summary of ChangeLog basically.
 * Fixed a bug with removing hosts while having +d or +k
 * Fixed an obscure memory bug with the perm-owner list
 * Fixed /me over partyline; now auto changes into cmd_me
+* Fixed cosmetic error in cmd_mns/invite/ban/exempt regarding which chan was displayed in log
 
 1.1.9
 

+ 2 - 2
src/mod/channels.mod/cmdschan.c

@@ -247,7 +247,7 @@ static void cmd_mns_mask(char type, struct userrec *u, int idx, char *par)
 	    add_mode(chan, '-', type, m->mask);
 #endif  /* LEAF */
 	    dprintf(idx, "%s %s '%s' on %s.\n", "Removed", cmd, m->mask, chan->dname);
-	    putlog(LOG_CMDS, "*", "#%s# (%s) -%s %s [on channel]", dcc[idx].nick, dcc[idx].u.chat->con_chan, cmd, who);
+	    putlog(LOG_CMDS, "*", "#%s# (%s) -%s %s [on channel]", dcc[idx].nick, chan->dname, cmd, who);
 	    return;
 	  }
 	}
@@ -268,7 +268,7 @@ static void cmd_mns_mask(char type, struct userrec *u, int idx, char *par)
 	  add_mode(chan, '-', type, m->mask);
 #endif  /* LEAF */
 	  dprintf(idx, "%s %s '%s' on %s.\n", "Removed", cmd, m->mask, chan->dname);
-	  putlog(LOG_CMDS, "*", "#%s# (%s) -%s %s [on channel]", dcc[idx].nick, dcc[idx].u.chat->con_chan, cmd, who);
+	  putlog(LOG_CMDS, "*", "#%s# (%s) -%s %s [on channel]", dcc[idx].nick, chan->dname, cmd, who);
 	  return;
 	}
       }