Brief summary of issue:
Sometimes registerAnonymousEventHandler("sysIrcMessage", onIrcMessage) does not call the function when an IRC message is received.
Video repro here: https://youtu.be/seLTuTSOtsk (see description for timestamps)
Steps to reproduce the issue:
- Install oragono IRC server for Windows (https://github.com/oragono/oragono/blob/stable/docs/MANUAL.md#windows)
- Follow the oragono instructions to set up the server and initiate it
- Create a script in Mudlet with the following code:
function connectToIRC()
setIrcServer("127.0.0.1", 6667)
setIrcNick("Ditto")
setIrcChannels({"#botchannel"})
registerAnonymousEventHandler("sysIrcMessage", onIRCMessage)
sendIrc("#botchannel", "Hello from Mudlet!")
end
function onIRCMessage(_, sender, target, message)
local myString = sender .. " says " .. message .. ".\n"
feedTriggers(myString)
end
- Trigger connectToIRC() when the client connects to a MUD, or trigger it manually
- Observe that Mudlet sometimes does not echo the IRC message received upon connecting
- Use an external IRC client such as HexChat to send a message to the channel
- Observe that Mudlet sometimes does not echo the IRC message received from the user which can be seen in the Mudlet IRC client
Error output:
Connecting to an IRC server with sysIrcMessage registered, and an echo function, should echo all IRC messages
Extra information, such as Mudlet version, operating system and ideas for how to solve:
Mudlet 4.6.2
Windows 10 version 1909 build 18363.815
Restarting Mudlet eventually gets it to fire correctly.
Brief summary of issue:
Sometimes registerAnonymousEventHandler("sysIrcMessage", onIrcMessage) does not call the function when an IRC message is received.
Video repro here: https://youtu.be/seLTuTSOtsk (see description for timestamps)
Steps to reproduce the issue:
Error output:
Connecting to an IRC server with sysIrcMessage registered, and an echo function, should echo all IRC messages
Extra information, such as Mudlet version, operating system and ideas for how to solve:
Mudlet 4.6.2
Windows 10 version 1909 build 18363.815
Restarting Mudlet eventually gets it to fire correctly.