Explorar el Código

* Fix channels added by cmd_slowjoin not having the user who added them associated with the channel.


svn: 3779
Bryan Drewery hace 18 años
padre
commit
916a7a877c
Se han modificado 2 ficheros con 4 adiciones y 1 borrados
  1. 1 0
      doc/UPDATES
  2. 3 1
      src/mod/channels.mod/cmdschan.c

+ 1 - 0
doc/UPDATES

@@ -1,5 +1,6 @@
 1.2.16 - http://wraith.botpack.net/milestone/1.2.16
 * Add 'set altchars' so that alternative characters used for nicks can be changed. (fixes #418)
+* Fix channels added by cmd_slowjoin not having the user who added them associated with the channel.
 
 1.2.15 - http://wraith.botpack.net/milestone/1.2.15
 * Fix a possible segfault when binaries compiled wrong

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

@@ -507,7 +507,9 @@ static void cmd_slowjoin(int idx, char *par)
     dprintf(idx, "Invalid channel name\n");
     return;
   }
-  strcpy(buf, "+inactive ");
+
+  egg_snprintf(buf, sizeof(buf), "+inactive addedby %s addedts %li", dcc[idx].nick, now);
+
   if (par[0])
     strlcat(buf, par, sizeof(buf));
   if (channel_add(buf2, chname, buf) == ERROR) {