skip_target and NOTICE/PRIVMSG target handling
tabris <[email protected]> Sat, 30 Apr 2005 23:17:24 -0400
| Newsgroups | gmane.network.irc.irssi.devel |
|---|---|
| Message-ID | <[email protected]> |
I have a tentative patch for skip_target() that handles Unreal's
multi-prefix NOTICEs. I'm thinking that it's a bit hackish atm however,
so want to know how I can get access to the isupport PREFIXes so that I
can support any prefix.
This is what I have at the moment, and it works for me.
static const char *skip_target(const char *target)
{
while ((target[i] == '~') || (target[i] == '&') || (target[i] ==
'@') || (target[i] == '%') || (target[i] == '+')) {
i++;
};
if(ischannel(target[i])) {
target += i;
};
return target;
}
I would appreciate pointers however on making this more universal, as I
doubt that it will be accepted as-is.
--
[Crash programs] fail because they are based on the theory that, with
nine women pregnant, you can get a baby a month.
-- Wernher von Braun
signature.asc
(application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQBCdEpNgbFCivvqDfQRAk4XAJ98DiEVuhmdKsL5sdCIYu9njsuvMwCg0FT+ MfNNnr+zF8a6ZUkGGVjgZtY= =5Jg6 -----END PGP SIGNATURE-----