Explorar el Código

* Fixed 'user has joined partyline' when after using cmd_botcmd/cmd_chattr on remote bots. (#84)

svn: 2132
Bryan Drewery hace 21 años
padre
commit
280159da78
Se han modificado 2 ficheros con 2 adiciones y 1 borrados
  1. 1 0
      doc/UPDATES
  2. 1 1
      src/cmds.c

+ 1 - 0
doc/UPDATES

@@ -135,6 +135,7 @@ Lines prefixed with '-' were disabled before release and are not finishsed, or a
 * Fixed cmd_boot attempting to boot a remote simulated dcc created by .botcmd. (#90)
 * Fixed cmd_boot attempting to boot a remote simulated dcc created by .botcmd. (#90)
 * Fixed bots with '`' in nick not spawning correctly. (#88)
 * Fixed bots with '`' in nick not spawning correctly. (#88)
 * Added cmd_suicide. (#80)
 * Added cmd_suicide. (#80)
+* Fixed 'user has joined partyline' when after using cmd_botcmd/cmd_chattr on remote bots. (#84)
 
 
 1.2.2
 1.2.2
 * Don't sanity check flags for users on DCC CHAT if they are on the bot via .botcmd.
 * Don't sanity check flags for users on DCC CHAT if they are on the bot via .botcmd.

+ 1 - 1
src/cmds.c

@@ -2303,7 +2303,7 @@ int check_dcc_chanattrs(struct userrec *u, char *chname, flag_t chflags, flag_t
   struct chanset_t *chan = NULL;
   struct chanset_t *chan = NULL;
 
 
   for (int i = 0; i < dcc_total; i++) {
   for (int i = 0; i < dcc_total; i++) {
-    if (dcc[i].type && (dcc[i].type->flags & DCT_MASTER) && !egg_strcasecmp(u->handle, dcc[i].nick)) {
+    if (dcc[i].type && dcc[i].simul == -1 && (dcc[i].type->flags & DCT_MASTER) && !egg_strcasecmp(u->handle, dcc[i].nick)) {
       if ((dcc[i].type == &DCC_CHAT) &&
       if ((dcc[i].type == &DCC_CHAT) &&
 	  ((chflags & (USER_OP | USER_MASTER | USER_OWNER))
 	  ((chflags & (USER_OP | USER_MASTER | USER_OWNER))
 	   != (ochatr & (USER_OP | USER_MASTER | USER_OWNER))))
 	   != (ochatr & (USER_OP | USER_MASTER | USER_OWNER))))