Mercurial > pidgin.yaz
comparison libpurple/protocols/irc/irc.h @ 24296:c204239bef48
Strip multiple leading mode characters from incoming nicknames.
This patch adds the function irc_nick_skip_mode, which takes an IRC
connection and nickname, and returns a pointer internal to the
nickname representing the first non-mode-character of the nick.
Apparently some IRC servers prepend more than one mode character to
nicknames under some circumstances; the standard is pretty vague on
the matter, and I can't see as how it hurts anything, so here goes.
This patch was originally from Marcos Garc«ża Ochoa.
Fixes #7416
committer: Ethan Blanton <elb@pidgin.im>
author | Marcos García Ochoa <magao@bigfoot.com> |
---|---|
date | Fri, 31 Oct 2008 14:51:11 +0000 |
parents | aac5753e2528 |
children | 24aa97dd601f |
comparison
equal
deleted
inserted
replaced
24295:8d040d580a44 | 24296:c204239bef48 |
---|---|
107 char *irc_escape_privmsg(const char *text, gssize length); | 107 char *irc_escape_privmsg(const char *text, gssize length); |
108 | 108 |
109 char *irc_mirc2html(const char *string); | 109 char *irc_mirc2html(const char *string); |
110 char *irc_mirc2txt(const char *string); | 110 char *irc_mirc2txt(const char *string); |
111 | 111 |
112 const char *irc_nick_skip_mode(struct irc_conn *irc, const char *string); | |
113 | |
112 gboolean irc_ischannel(const char *string); | 114 gboolean irc_ischannel(const char *string); |
113 | 115 |
114 void irc_register_commands(void); | 116 void irc_register_commands(void); |
115 void irc_msg_table_build(struct irc_conn *irc); | 117 void irc_msg_table_build(struct irc_conn *irc); |
116 void irc_parse_msg(struct irc_conn *irc, char *input); | 118 void irc_parse_msg(struct irc_conn *irc, char *input); |