1
0
mirror of https://github.com/irssi/irssi.git synced 2024-11-03 04:27:19 -05:00
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3298 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Geert Hauwaerts 2004-09-15 19:29:55 +00:00 committed by geert
parent ba2a025706
commit f888f2c9dc

View File

@ -88,18 +88,22 @@ static void event_whois_oper(IRC_SERVER_REC *server, const char *data)
g_return_if_fail(data != NULL);
params = event_get_params(data, 3, NULL, &nick, &type);
/* type = "is an IRC Operator" */
if (strlen(type) > 5) {
/* Bugfix: http://bugs.irssi.org/?do=details&id=99
* Author: Geert Hauwaerts <geert@irssi.org>
* Date: Wed Sep 15 20:17:24 CEST 2004
*/
if ((!strncmp(type, "is an ", 6)) || (!strncmp(type, "is a ", 5))) {
type += 5;
if (*type == ' ') type++;
}
if (*type == '\0') {
/* shouldn't happen */
if (*type == '\0')
type = "IRC Operator";
}
printformat(server, nick, MSGLEVEL_CRAP,
IRCTXT_WHOIS_OPER, nick, type);
IRCTXT_WHOIS_OPER, nick, type);
g_free(params);
}