Comment 3 for bug 863017

Revision history for this message
helpshae (helpshae) wrote :

I joined a couple of channels on irc.freenode.net and confirmed that the original plugin works fine for them. However, for #shine1019 or any other ustream irc channel I tried, it didn't appear to work.

The wireshark dump of the freenode chat reveals the same protocol structure I described for ustream. However, I did leave out a colon between the #channel and the message in my previous post. The corrected structures is as follows:

:nick!<email address hidden> PRIVMSG #channel :message posted to everyone

However, after applying the fix I originally described, and relaunching xchat, the freenode channels are repeated. To fix this, I commented out the original hook so they appear as follows:

#xchat.hook_print('Channel Message', speak_message)
xchat.hook_server('PRIVMSG', speak_message)

Now, both freenode and ustream are read only once. As I mentioned earlier, there must be a better way of parsing the data in the speak_message function, but I haven't had a chance to brush up on my python. I'm going to test on geekshed and other irc hosts tomorrow.

Thanks again, and I hope this helps!