mirror of
https://github.com/irssi/irssi.git
synced 2026-08-10 12:23:37 +02:00
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:
parent
be48bdc22c
commit
d4178292e5
3 changed files with 7 additions and 5 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue