Changeset - 408fcd8f96cb
[Not reviewed]
0 1 0
Jan Kaluza - 10 years ago 2016-01-02 19:49:30
jkaluza@redhat.com
Allow setting just mode 0 and 1
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
backends/twitter/TwitterPlugin.cpp
Show inline comments
 
@@ -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;
 
			}
0 comments (0 inline, 0 general)