diff options
author | Timo Sirainen <cras@irssi.org> | 2001-10-25 12:02:10 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2001-10-25 12:02:10 +0000 |
commit | d4178292e5c6b64eb364bf8d4ca00c63cd62a57b (patch) | |
tree | bea46a9f8d58bebcce901765b660a377b7538095 /src | |
parent | be48bdc22c28fd0bd68ef66e836e1943a5fe169d (diff) | |
download | irssi-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')
-rw-r--r-- | src/fe-common/irc/fe-events-numeric.c | 8 | ||||
-rw-r--r-- | src/fe-common/irc/module-formats.c | 3 | ||||
-rw-r--r-- | src/fe-common/irc/module-formats.h | 1 |
3 files changed, 7 insertions, 5 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); } diff --git a/src/fe-common/irc/module-formats.c b/src/fe-common/irc/module-formats.c index 4fd20640..d3f39b72 100644 --- a/src/fe-common/irc/module-formats.c +++ b/src/fe-common/irc/module-formats.c @@ -100,8 +100,7 @@ FORMAT_REC fecommon_irc_formats[] = { { "whois_idle", "{whois idle %|$1 days $2 hours $3 mins $4 secs}", 5, { 0, 1, 1, 1, 1 } }, { "whois_idle_signon", "{whois idle %|$1 days $2 hours $3 mins $4 secs {comment signon: $5}}", 6, { 0, 1, 1, 1, 1, 0 } }, { "whois_server", "{whois server %|$1 {comment $2}}", 3, { 0, 0, 0 } }, - { "whois_oper", "{whois {hilight IRC operator}}", 1, { 0 } }, - { "whois_oper_type", "{whois {hilight $1}}", 2, { 0, 0 } }, + { "whois_oper", "{whois {hilight $1}}", 2, { 0, 0 } }, { "whois_registered", "{whois has registered this nick}", 1, { 0 } }, { "whois_help", "{whois is available for help}", 1, { 0 } }, { "whois_modes", " {whois modes $1}", 2, { 0, 0 } }, diff --git a/src/fe-common/irc/module-formats.h b/src/fe-common/irc/module-formats.h index 6722ede1..4cdba2d3 100644 --- a/src/fe-common/irc/module-formats.h +++ b/src/fe-common/irc/module-formats.h @@ -76,7 +76,6 @@ enum { IRCTXT_WHOIS_IDLE_SIGNON, IRCTXT_WHOIS_SERVER, IRCTXT_WHOIS_OPER, - IRCTXT_WHOIS_OPER_TYPE, IRCTXT_WHOIS_REGISTERED, IRCTXT_WHOIS_HELP, IRCTXT_WHOIS_MODES, |