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
chattr $username -C
puthelp "NOTICE $nick :$username is now confirmed."
} elseif { validuser $username } {
} elseif [ validuser $username ] {
puthelp "NOTICE $nick :$username is already confirmed."
} else {
puthelp "NOTICE $nick :$username does not exist"
@ -278,7 +278,7 @@ proc znc:deny {nick host handle chan text} {
znc:controlpanel:DelUser $username
deluser $username
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"
} else {
puthelp "NOTICE $nick :$username does not exist"