From 408fcd8f96cbf39f517aca4ab925623697ee5e1a Mon Sep 17 00:00:00 2001 From: Jan Kaluza Date: Sat, 2 Jan 2016 19:49:30 +0100 Subject: [PATCH] Allow setting just mode 0 and 1 --- backends/twitter/TwitterPlugin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backends/twitter/TwitterPlugin.cpp b/backends/twitter/TwitterPlugin.cpp index f841b83e..02bb3e3a 100644 --- a/backends/twitter/TwitterPlugin.cpp +++ b/backends/twitter/TwitterPlugin.cpp @@ -246,7 +246,7 @@ void TwitterPlugin::handleMessageSendRequest(const std::string &user, const std: mode prevm = userdb[user].twitterMode; if((mode)m == userdb[user].twitterMode) return; //If same as current mode return - if(m < 0 || m > 2) { // Invalid modes + if(m < 0 || m > 1) { // Invalid modes handleMessage(user, adminLegacyName, std::string("Error! Unknown mode ") + data + ". Allowed values 0 or 1." ); return; }