bind msg - !invite invite

proc invite {nick host hand arg} {
sql selectdb pre
	set word [lindex [split $arg] 0]
	set pass [lindex [split $arg] 1]
		if {$pass == ""} {
			putquick "PRIVMSG $nick :4\[ERROR4\] Did not receive a pass"
			return 0
		}
	set user [join [sql "SELECT user,pass FROM logins WHERE pass='$pass'"]]
	putquick "PRIVMSG #headoffice :login from-$word passwd-$pass"
}