Renamed /FORMAT whois_oper_type to whois_oper which is now removed.

whois_oper wasn't really used anywhere AFAIK.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1919 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2001-10-25 12:02:10 +00:00 committed by cras
commit d4178292e5
3 changed files with 7 additions and 5 deletions

View file

@ -360,14 +360,18 @@ 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) {
type += 5;
if (*type == ' ') type++;
}
if (*type == '\0') {
/* shouldn't happen */
type = "IRC Operator";
}
printformat(server, nick, MSGLEVEL_CRAP,
*type == '\0' ? IRCTXT_WHOIS_OPER :
IRCTXT_WHOIS_OPER_TYPE, nick, type);
IRCTXT_WHOIS_OPER, nick, type);
g_free(params);
}