Explorar el Código

* Port [2991] to 1.2.11
* Fix a segfault with ctcp-cloak. (fairly random) (fixes #285)


svn: 2992

Bryan Drewery hace 20 años
padre
commit
6a92ad9fc1
Se han modificado 2 ficheros con 5 adiciones y 0 borrados
  1. 1 0
      doc/UPDATES
  2. 4 0
      src/mod/ctcp.mod/ctcp.c

+ 1 - 0
doc/UPDATES

@@ -22,6 +22,7 @@ Lines prefixed with '-' were disabled before release and are not finished, or ar
 * Made requested changes to cmd_dump to help clear up confusion. (fixes #269)
 * Fix improper notice when doing .set <var> -- (this actually shouldn't say 'not set') (fixes #272)
 * cmd_bans/exempts/invites [global] now displays a list of bans for ALL channels. (fixes #276)
+* Fix a segfault with ctcp-cloak. (fairly random) (fixes #285)
 
 1.2.10 - http://tracker.shatow.net/milestone/1.2.10
 * Removed old references to '+/-manop' and '+/-nomop' for chaninfo in help file.

+ 4 - 0
src/mod/ctcp.mod/ctcp.c

@@ -42,6 +42,10 @@ char bankickprefix[25] = "";
 
 void scriptchanged()
 {
+  /* Check if this was called from init_vars() before ctcp_init() is called */
+  if (!cloak_bxver[0])
+    return;
+
   char tmp[200] = "", *p = NULL;
 
   ctcpversion[0] = ctcpversion2[0] = ctcpuserinfo[0] = autoaway[0] = kickprefix[0] = bankickprefix[0] = 0;