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:
parent
ba2a025706
commit
f888f2c9dc
@ -88,15 +88,19 @@ static void event_whois_oper(IRC_SERVER_REC *server, const char *data)
|
|||||||
g_return_if_fail(data != NULL);
|
g_return_if_fail(data != NULL);
|
||||||
|
|
||||||
params = event_get_params(data, 3, NULL, &nick, &type);
|
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;
|
type += 5;
|
||||||
if (*type == ' ') type++;
|
if (*type == ' ') type++;
|
||||||
}
|
}
|
||||||
if (*type == '\0') {
|
|
||||||
/* shouldn't happen */
|
if (*type == '\0')
|
||||||
type = "IRC Operator";
|
type = "IRC Operator";
|
||||||
}
|
|
||||||
|
|
||||||
printformat(server, nick, MSGLEVEL_CRAP,
|
printformat(server, nick, MSGLEVEL_CRAP,
|
||||||
IRCTXT_WHOIS_OPER, nick, type);
|
IRCTXT_WHOIS_OPER, nick, type);
|
||||||
|
Loading…
Reference in New Issue
Block a user