summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2002-08-22 21:10:40 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2002-08-22 21:10:40 +0000
commit0c359be8e517e67edfff099fc16343d99c578ce2 (patch)
treea4a9ea5d0927edbbb50cec8388f76f5e5187101b
parent38ce412a5d4ff25b484f6a92dbfb0711322b6321 (diff)
downloadirssi-0c359be8e517e67edfff099fc16343d99c578ce2.zip
Added $2 = numeric to /FORMAT default_event
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2881 dbcabf3a-b0e7-0310-adc4-f8d773084564
-rw-r--r--src/fe-common/irc/fe-events-numeric.c3
-rw-r--r--src/fe-common/irc/module-formats.c2
2 files changed, 3 insertions, 2 deletions
diff --git a/src/fe-common/irc/fe-events-numeric.c b/src/fe-common/irc/fe-events-numeric.c
index 1052226e..742b4100 100644
--- a/src/fe-common/irc/fe-events-numeric.c
+++ b/src/fe-common/irc/fe-events-numeric.c
@@ -846,7 +846,8 @@ static void print_event_received(IRC_SERVER_REC *server, const char *data,
printtext(server, target, MSGLEVEL_CRAP, "%s", args);
else {
printformat(server, target, MSGLEVEL_CRAP,
- IRCTXT_DEFAULT_EVENT, nick, args);
+ IRCTXT_DEFAULT_EVENT, nick, args,
+ current_server_event);
}
g_free(args);
}
diff --git a/src/fe-common/irc/module-formats.c b/src/fe-common/irc/module-formats.c
index 4309a06c..df22f18b 100644
--- a/src/fe-common/irc/module-formats.c
+++ b/src/fe-common/irc/module-formats.c
@@ -153,7 +153,7 @@ FORMAT_REC fecommon_irc_formats[] = {
{ "kill_server", "You were {error killed} by {server $0} {reason $1} {comment Path: $2}", 3, { 0, 0, 0 } },
{ "error", "{error ERROR} $0", 1, { 0 } },
{ "unknown_mode", "Unknown mode character $0", 1, { 0 } },
- { "default_event", "[$0] $1", 2, { 0, 0 } },
+ { "default_event", "[$0] $1", 3, { 0, 0, 0 } },
/* ---- */
{ NULL, "Misc", 0 },