summaryrefslogtreecommitdiff
path: root/src/irc/irc-recv.c
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2005-01-02 11:44:33 +0000
committerSebastien Helleu <flashcode@flashtux.org>2005-01-02 11:44:33 +0000
commit82265b629b7e137a266f9cccb08634adeb5c4f8e (patch)
treec5f63b471eb5d2284287bac1eb8a177ec9905c84 /src/irc/irc-recv.c
parenta3e3113e4e52b2165c3484136817057a81bf0ca5 (diff)
downloadweechat-82265b629b7e137a266f9cccb08634adeb5c4f8e.zip
Fixed /away command (now ok when not away)
Diffstat (limited to 'src/irc/irc-recv.c')
-rw-r--r--src/irc/irc-recv.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/irc/irc-recv.c b/src/irc/irc-recv.c
index 77747ad20..74400fbf0 100644
--- a/src/irc/irc-recv.c
+++ b/src/irc/irc-recv.c
@@ -1712,6 +1712,7 @@ irc_cmd_recv_305 (t_irc_server *server, char *host, char *arguments)
COLOR_WIN_CHAT, "%s\n", arguments);
}
server->is_away = 0;
+ server->away_time = 0;
return 0;
}
@@ -1737,6 +1738,7 @@ irc_cmd_recv_306 (t_irc_server *server, char *host, char *arguments)
COLOR_WIN_CHAT, "%s\n", arguments);
}
server->is_away = 1;
+ server->away_time = time (NULL);
return 0;
}