Allow setting just mode 0 and 1

This commit is contained in:
Jan Kaluza 2016-01-02 19:49:30 +01:00
parent 59194bbd38
commit 408fcd8f96

View file

@ -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;
}