diff options
author | June McEnroe <june@causal.agency> | 2020-03-23 16:52:24 -0400 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2020-03-23 16:52:24 -0400 |
commit | 4f40ace9d4cf475d445678e63b3f48cc03cf7d7e (patch) | |
tree | a99352ca1396d742369301705071a0cf6a26f851 /command.c | |
parent | Fix non-multiline command newline handling (diff) | |
download | catgirl-4f40ace9d4cf475d445678e63b3f48cc03cf7d7e.tar.gz catgirl-4f40ace9d4cf475d445678e63b3f48cc03cf7d7e.zip |
Track MODE in replies
Diffstat (limited to '')
-rw-r--r-- | command.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/command.c b/command.c index 5da8bb9..7339574 100644 --- a/command.c +++ b/command.c @@ -185,12 +185,14 @@ static void commandMode(uint id, char *params) { ircFormat("MODE %s %s\r\n", self.nick, params); } else { ircFormat("MODE %s\r\n", self.nick); + replies.mode++; } } else { if (params) { ircFormat("MODE %s %s\r\n", idNames[id], params); } else { ircFormat("MODE %s\r\n", idNames[id]); + replies.mode++; } } } |