From 6fb80cff1f663759a6ac1dbcf8802b8d2b35f83d Mon Sep 17 00:00:00 2001 From: John Reese Date: Tue, 18 Jan 2011 10:44:23 -0500 Subject: [PATCH] Modify SET command to accept space-separated values In preparation for nick_blacklist, which needs to allow input of a space-separated list of nicks to ignore, the SET command shouldn't be requirement an exact number of tokens. Any tokens past the first three should be included in the option's new value, such that a command like "set nick_blacklist nick1 nick2 nick3" will be accepted. --- notifo.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/notifo.cpp b/notifo.cpp index 9bc0f23..42fabab 100644 --- a/notifo.cpp +++ b/notifo.cpp @@ -376,14 +376,14 @@ class CNotifoMod : public CModule // SET command if (action == "set") { - if (token_count != 3) + if (token_count < 3) { PutModule("Usage: set