proc passwd {nick host hand chan arg} {
sql selectdb pre
	if {[string tolower $chan] == "#headoffice"} {
		set word [lindex [split $arg] 0]
		set pass [lindex [split $arg] 1]
		if {$pass == ""} {
			putquick "PRIVMSG $chan :4\[USER-PASS4\] Checking for the password of: $word."
		}
	      set user [join [sql "SELECT pass FROM logins WHERE user='$word' ORDER BY pass DESC LIMIT 0, 1"]]
			putquick "PRIVMSG $chan :4\[USER-PASS4\] PASSWD = $user"
	}
}