Browse Source

* Fixed bug with displaying chat over partyline due to change of default dcc[].simul to -1

svn: 2057
Bryan Drewery 21 years ago
parent
commit
df15e26750
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/dccutil.c

+ 2 - 2
src/dccutil.c

@@ -320,7 +320,7 @@ chatout(const char *format, ...)
     *p++ = 0;
     *p++ = 0;
 
 
   for (int i = 0; i < dcc_total; i++)
   for (int i = 0; i < dcc_total; i++)
-    if (dcc[i].type && (dcc[i].type == &DCC_CHAT) && !(dcc[i].simul))
+    if (dcc[i].type && (dcc[i].type == &DCC_CHAT) && (dcc[i].simul == -1))
       if (dcc[i].u.chat->channel >= 0)
       if (dcc[i].u.chat->channel >= 0)
         dprintf(i, "%s\n", s);
         dprintf(i, "%s\n", s);
 }
 }
@@ -341,7 +341,7 @@ chanout_but(int x, int chan, const char *format, ...)
     *p = 0;
     *p = 0;
 
 
   for (int i = 0; i < dcc_total; i++)
   for (int i = 0; i < dcc_total; i++)
-    if (dcc[i].type && (dcc[i].type == &DCC_CHAT) && (i != x) && !(dcc[i].simul))
+    if (dcc[i].type && (dcc[i].type == &DCC_CHAT) && (i != x) && (dcc[i].simul == -1))
       if (dcc[i].u.chat->channel == chan)
       if (dcc[i].u.chat->channel == chan)
         dprintf(i, "%s\n", s);
         dprintf(i, "%s\n", s);
 }
 }