Ver Fonte

* Don't use dumplots() for cmd_botcmd reply. Let the target cmd determine this.

Bryan Drewery há 16 anos atrás
pai
commit
6d5e997962
1 ficheiros alterados com 2 adições e 6 exclusões
  1. 2 6
      src/botcmd.c

+ 2 - 6
src/botcmd.c

@@ -1347,16 +1347,12 @@ void bounce_simul(int idx, char *buf)
 static void bot_rsimr(char *botnick, char *code, char *msg)
 {
   if (msg[0]) {
-    char * par = strdup(msg), *parp = par, *prefix = NULL;
+    char * par = strdup(msg), *parp = par;
     int idx = atoi(newsplit(&par, ' ', 0));
     char *nick = newsplit(&par, ' ', 0);
-    size_t size = strlen(botnick) + 4;
 
     if (dcc[idx].type && (dcc[idx].type == &DCC_CHAT) && dcc[idx].user && !strcmp(dcc[idx].user->handle, nick)) {
-      prefix = (char *) my_calloc(1, size);
-      simple_snprintf(prefix, size, "[%s] ", botnick);
-      dumplots(idx, prefix, par);
-      free(prefix);
+      dprintf(idx, "[%s] %s\n", botnick, par);
     }
     free(parp);
   }