From 3c0e23a7c5bb7c17a64c26c410838a0598f41de6 Mon Sep 17 00:00:00 2001 From: Kevin Easton Date: Sun, 5 Sep 2010 09:03:32 +0000 Subject: [PATCH] Ensure that SHOW_AWAY_ONCE doesn't hide away status in /whois output, by clearing last_away_msg when the 311 whois reply numeric is recieved. git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@95 13b04d17-f746-0410-82c6-800466cd88b0 --- Changelog | 4 +++- source/numbers.c | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Changelog b/Changelog index 1c574f1..46ab3ce 100644 --- a/Changelog +++ b/Changelog @@ -1,6 +1,8 @@ [Changes 1.2c01] -* Fix up /WILN, /WILC and /WILCR. (caf). +* Ensure that SHOW_AWAY_ONCE doesn't hide away status in /whois output. (caf) + +* Fix up /WILN, /WILC and /WILCR. (caf) * Backport changes from epic5 to make recv_nick, sent_nick and sent_body per-server, and apply new version of do_oops from flashback. This means diff --git a/source/numbers.c b/source/numbers.c index 0b60705..4307ea0 100644 --- a/source/numbers.c +++ b/source/numbers.c @@ -788,6 +788,9 @@ void numbered_command(char *from, int comm, char **ArgList) #endif new_free(&userhost); } + + /* Make sure we don't hide the /away message */ + new_free(&last_away_msg); break; } case 312: /* #define RPL_WHOISSERVER 312 */