Преглед изворни кода

* Port [3203] to 1.2.14
* Fix cmd_swhois stripping multiple channel modes. (fixes #348)



svn: 3204

Bryan Drewery пре 19 година
родитељ
комит
8283078d61
2 измењених фајлова са 2 додато и 1 уклоњено
  1. 1 0
      doc/UPDATES
  2. 1 1
      src/mod/server.mod/servmsg.c

+ 1 - 0
doc/UPDATES

@@ -9,6 +9,7 @@ Lines prefixed with '-' were disabled before release and are not finished, or ar
 * Fix ./binary -C not signalling the correct process under some situations. (actually fixes #315)
 * Fix bots being removed from binary not being killed. (fixes #338)
 * Fix typo in help for 'set' (fixes #342)
+* Fix cmd_swhois stripping multiple channel modes. (fixes #348)
 
 1.2.13 - http://wraith.shatow.net/milestone/1.2.13
 * Fix cmd_chanset accepting invalid flags

+ 1 - 1
src/mod/server.mod/servmsg.c

@@ -1216,7 +1216,7 @@ hide_chans(const char *nick, struct userrec *u, char *channels)
     /* save and skip any modes in front of #chan */
     s[0] = 0;
     while (chname[0] && chname[0] != '#') {
-      simple_snprintf(s, sizeof(s), "%c", chname[0]);
+      simple_snprintf(s, sizeof(s), "%s%c", s[0] ? s : "", chname[0]);
       chname++;
     }