I have a bot which connect to irc servers using socket (socket name are of the form bot.<id_name>, running on my main mIRC. For each network, I open a @bot.<id_name> custom window to display received messages (like /debug but I don't echo what I'm sending myself)
I have this line of code:
Code:
on *:sockclose:bot*:echo @bot $+ $mid($sockname,4) sockclose event $sockerr 
Yesterday at 2am one of the server I was connected to was not stable and I disconnected both with my main connection with mIRC and the socket. The sockclose event above triggered but instead of displaying the debug message to the @bot.<id_name>, it displayed in status window.

If the window @bot.<id_name> were not open for some reasons, mIRC would have displayed in status: "@bot.<id_name> sockclose event 3" with the window's name included, but instead, I got only "sockclose event 3", which makes me think there is a bug.

But today I unplugged my ethernet cable to try to reproduce but it correctly displayed the line in @bot.<id_name>, so I can't just reproduce by getting the event to trigger.

If you look at the source code, is there any way for /echo to parse the output window as a valid custom @window, but to end up displaying in status instead?


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