summaryrefslogtreecommitdiff
path: root/src/fe-common/irc/fe-events-numeric.c
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2001-10-25 12:02:10 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2001-10-25 12:02:10 +0000
commitd4178292e5c6b64eb364bf8d4ca00c63cd62a57b (patch)
treebea46a9f8d58bebcce901765b660a377b7538095 /src/fe-common/irc/fe-events-numeric.c
parentbe48bdc22c28fd0bd68ef66e836e1943a5fe169d (diff)
downloadirssi-d4178292e5c6b64eb364bf8d4ca00c63cd62a57b.zip
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
Diffstat (limited to 'src/fe-common/irc/fe-events-numeric.c')
-rw-r--r--src/fe-common/irc/fe-events-numeric.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/fe-common/irc/fe-events-numeric.c b/src/fe-common/irc/fe-events-numeric.c
index 15501767..a39ff18d 100644
--- a/src/fe-common/irc/fe-events-numeric.c
+++ b/src/fe-common/irc/fe-events-numeric.c
@@ -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);
}