diff options
author | C. McEnroe | 2020-02-14 21:10:40 -0500 |
---|---|---|
committer | C. McEnroe | 2020-02-14 21:10:40 -0500 |
commit | 8aa6dd86f6c7036f6dbc065efb63e1b75e5cf0a8 (patch) | |
tree | 29231a93fb4b7083513f42ce58168d5284929575 /handle.c | |
parent | 0d23f8f1b8d264e2dce82bd740e376a5731a2478 (diff) |
Add /away
Diffstat (limited to 'handle.c')
-rw-r--r-- | handle.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/handle.c b/handle.c index 2e4f56d..6dffa17 100644 --- a/handle.c +++ b/handle.c @@ -549,6 +549,13 @@ static void handleReplyAway(struct Message *msg) { ); } +static void handleReplyNowAway(struct Message *msg) { + require(msg, false, 2); + if (!replies.away) return; + uiFormat(Network, Warm, tagTime(msg), "%s", msg->params[1]); + replies.away--; +} + static bool isAction(struct Message *msg) { if (strncmp(msg->params[1], "\1ACTION ", 8)) return false; msg->params[1] += 8; @@ -675,6 +682,8 @@ static const struct Handler { { "005", handleReplyISupport }, { "276", handleReplyWhoisGeneric }, { "301", handleReplyAway }, + { "305", handleReplyNowAway }, + { "306", handleReplyNowAway }, { "307", handleReplyWhoisGeneric }, { "311", handleReplyWhoisUser }, { "312", handleReplyWhoisServer }, |