Upon the result of $result being either 1 or 0 it should call another proc
it aint

can someone put me on the right track.
Code: Select all
set sql "SELECT username FROM users WHERE username = '$sgnick' "
putloglev d * "ircstats: executing $sql"
set result [mysqlsel $db_handle $sql ]
if {$result == 1} {
putquick "PRIVMSG #mods-lounge : Check 1 "
disp_mods $sgnick
} else { putlog "calling ghstcheck proc"
ghst_check $ghostnick }
proc disp_mods { sgnick } {
blah blah
proc ghst_check { ghostnick } {
blah blah
the error i recieve is this -
Tcl error [regcheck]: invalid command name "ghst_check"
and
Tcl error [regcheck]: invalid command name "disp_mods"