From e96a7016b53536639c901590e8dbdda353878897 Mon Sep 17 00:00:00 2001 From: Michael Poole Date: Fri, 27 Oct 2006 00:44:35 +0000 Subject: [PATCH] Support +I while we're adding modes.. src/hash.c (FLAGS_NOIDLE): New macro for +I (hide idle time) mode. (IsNoIdle): New macro to test it. src/opserv.c (cmd_whois): Test no-idle mode. src/proto-p10.c (irc_user): Check for no-idle mode. (mod_usermode): Check for +I flag. git-archimport-id: srvx@srvx.net--2006/srvx--devo--1.3--patch-65 --- ChangeLog | 19 +++++++++++++++++++ src/proto-p10.c | 3 +++ 2 files changed, 22 insertions(+) diff --git a/ChangeLog b/ChangeLog index 82ac880..8f3fe4f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -2,6 +2,25 @@ # arch-tag: automatic-ChangeLog--srvx@srvx.net--2006/srvx--devo--1.3 # +2006-10-27 00:44:35 GMT Michael Poole patch-65 + + Summary: + Support +I while we're adding modes.. + Revision: + srvx--devo--1.3--patch-65 + + src/hash.c (FLAGS_NOIDLE): New macro for +I (hide idle time) mode. + (IsNoIdle): New macro to test it. + + src/opserv.c (cmd_whois): Test no-idle mode. + + src/proto-p10.c (irc_user): Check for no-idle mode. + (mod_usermode): Check for +I flag. + + modified files: + ChangeLog src/proto-p10.c + + 2006-10-27 00:35:00 GMT Michael Poole patch-64 Summary: diff --git a/src/proto-p10.c b/src/proto-p10.c index e748474..e1dff55 100644 --- a/src/proto-p10.c +++ b/src/proto-p10.c @@ -479,6 +479,8 @@ irc_user(struct userNode *user) modes[modelen++] = 'n'; if (IsHiddenHost(user)) modes[modelen++] = 'x'; + if (IsNoIdle(user)) + modes[modelen++] = 'I'; modes[modelen] = 0; /* we don't need to put the + in modes because it's in the format string. */ @@ -2222,6 +2224,7 @@ void mod_usermode(struct userNode *user, const char *mode_change) { case 'k': do_user_mode(FLAGS_SERVICE); break; case 'g': do_user_mode(FLAGS_GLOBAL); break; case 'n': do_user_mode(FLAGS_NOCHAN); break; + case 'I': do_user_mode(FLAGS_NOIDLE); break; case 'x': do_user_mode(FLAGS_HIDDEN_HOST); break; case 'r': if (*word) { -- 2.20.1