summaryrefslogtreecommitdiff
path: root/src/fe-common/irc/notifylist/fe-notifylist.c
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2000-07-18 23:34:45 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2000-07-18 23:34:45 +0000
commit8828b8cedd16a6d3bb405efef08895ef2c09048d (patch)
treeeef0b9d95cb7e088fa084888aa323a81137e8b87 /src/fe-common/irc/notifylist/fe-notifylist.c
parentff706b45b972980059d93fd6570862c6c69a05ff (diff)
downloadirssi-8828b8cedd16a6d3bb405efef08895ef2c09048d.zip
/NOTIFY -list displays now "-idle" before the actual idle time..
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@489 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-common/irc/notifylist/fe-notifylist.c')
-rw-r--r--src/fe-common/irc/notifylist/fe-notifylist.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fe-common/irc/notifylist/fe-notifylist.c b/src/fe-common/irc/notifylist/fe-notifylist.c
index fb6596d8..0efd1869 100644
--- a/src/fe-common/irc/notifylist/fe-notifylist.c
+++ b/src/fe-common/irc/notifylist/fe-notifylist.c
@@ -139,12 +139,12 @@ static void cmd_notify_show(void)
static void notifylist_print(NOTIFYLIST_REC *rec)
{
- char idle[MAX_INT_STRLEN], *ircnets;
+ char idle[10+MAX_INT_STRLEN], *ircnets;
if (rec->idle_check_time <= 0)
idle[0] = '\0';
else
- g_snprintf(idle, sizeof(idle), "%d", rec->idle_check_time);
+ g_snprintf(idle, sizeof(idle), "-idle %d", rec->idle_check_time);
ircnets = rec->ircnets == NULL ? NULL :
g_strjoinv(",", rec->ircnets);