fix user validation

This commit is contained in:
Sheogorath 2016-01-19 02:47:31 +01:00
parent 17a8265800
commit eb1869a839

View File

@ -261,7 +261,7 @@ proc znc:confirm {nick host handle chan text} {
znc:blockuser:unblock $username znc:blockuser:unblock $username
chattr $username -C chattr $username -C
puthelp "NOTICE $nick :$username is now confirmed." puthelp "NOTICE $nick :$username is now confirmed."
} elseif { validuser $username } { } elseif [ validuser $username ] {
puthelp "NOTICE $nick :$username is already confirmed." puthelp "NOTICE $nick :$username is already confirmed."
} else { } else {
puthelp "NOTICE $nick :$username does not exist" puthelp "NOTICE $nick :$username does not exist"
@ -278,7 +278,7 @@ proc znc:deny {nick host handle chan text} {
znc:controlpanel:DelUser $username znc:controlpanel:DelUser $username
deluser $username deluser $username
puthelp "NOTICE $nick :$username is now denied." puthelp "NOTICE $nick :$username is now denied."
} elseif { validuser $username } { } elseif [ validuser $username ] {
puthelp "NOTICE $nick :$username is already confirmed. Use \"${scriptCommandPrefix}DelUser <username>\" to remove" puthelp "NOTICE $nick :$username is already confirmed. Use \"${scriptCommandPrefix}DelUser <username>\" to remove"
} else { } else {
puthelp "NOTICE $nick :$username does not exist" puthelp "NOTICE $nick :$username does not exist"