ソースを参照

* Fixed cmd_[un]stick not using "ban" by default for mask type. (#145)

svn: 2349
Bryan Drewery 21 年 前
コミット
819bb7ae36
2 ファイル変更2 行追加0 行削除
  1. 1 0
      doc/UPDATES
  2. 1 0
      src/mod/channels.mod/cmdschan.c

+ 1 - 0
doc/UPDATES

@@ -24,6 +24,7 @@ Lines prefixed with '-' were disabled before release and are not finished, or ar
 * Fixed ignores not being used. (#147) (Breaks a fix to not display msgs after added to ignore for floods)
 * Fixed improper hub recognition in binary config parser. (#148)
 * Help for 'botcmd' was off/outdated
+* Fixed cmd_[un]stick not using "ban" by default for mask type. (#145)
 
 1.2.6
 * (REVERTED FROM 1.2.3) Disabled all memory allocations after a segfault (Fixes CPU spinning)

+ 1 - 0
src/mod/channels.mod/cmdschan.c

@@ -643,6 +643,7 @@ static void cmd_stick_yn(int idx, char *par, int yn)
       egg_strcasecmp(stick_type, "ban")) {
     strlcpy(chname, s, sizeof chname);
     strlcpy(s, stick_type, sizeof s);
+    stick_type = "ban";
   }
   if (!s[0]) {
     dprintf(idx, "Usage: %sstick [ban/exempt/invite] <hostmask or number> [channel]\n", yn ? "" : "un");