005 support (was Re: irssi and channel mode +d)
David Leadbeater <[email protected]> Sat, 26 Apr 2003 12:01:39 +0100
| Newsgroups | gmane.network.irc.irssi.devel |
|---|---|
| Message-ID | <[email protected]> |
On Sat, Apr 19, 2003 at 10:47:15AM +0100, David Leadbeater wrote: > 005 numeric support would be nice and solve many problems like this but I > don't think it's trival to add to Irssi either. Well, I decided to do it anyway. I know cras said he was planning to do it for 0.9, but I want it *now* not some time in the future ;-). I've got a patch that adds support for the 005 numeric, puts the data it sends into a glib hash and makes use of CHANMODES, PREFIX, CASEMAPPING and MODES. Other values are usable from the glib hash in C or the $server->isupport method in perl scripts. Please note that I cut lots of corners doing this with the rationale that if this was planned for 0.9 bits of Irssi's internals could be changed to suit more dynamic support for things like this. Hopefully this also makes some patches such asthe ones to add support for other prefixes obselete.. The patch is a bit big for a mailing list so it is at http://babylon.otherwize.co.uk/irssi-isupport.diff It was based on the internet draft at: http://www.ietf.org/internet-drafts/draft-brocklesby-irc-isupport-01.txt But hopefully most of the stuff it deals with is consistant across servers anyway.