Since a few version, a new socket listening (/socklisten) on a port that is already listened by another socket doesn't bring an error anymore, but that new socket cannot be reached (on socklisten), I'm not sure why it has been changed but I think we should have a way to recover from this situation:

in remote:
Code:
on *:socklisten:test:{
 echo -a test
 sockaccept test_test_ $+ $ticks 
}
on *:socklisten:test1:{ 
 echo -a test1 
 sockaccept test_test1_ $+ $ticks
}


Type /socklisten test 8000 (or any port really) and /socklisten test1 8000, and then open some clients: /sockopen clientN localhost 8000, only "test" is reached.
Triggering the on socklisten event of that socket (test1 here) with a special value for $sockerr would work.


#mircscripting @ irc.swiftirc.net == the best mIRC help channel