function regme(nick, passwd) if not passwd[1] then return "Usage: regme " elseif not AccountFind(nick) then AccountCreate(nick, "regs") AccountPasswd(nick, passwd[1]) return "Your Account " .. nick .. " is succesfully registered with password: " .. passwd[1] .. " Now that your nick has been registered, it's good to remember your password, so put the hub into your favorites. Take properties there, and install your nick, password, and the address of the hub up, so it is easier for you to come to the hub next time." else return "Your Account " .. nick .. " is registered already." end end function unreg(nick) if AccountFind(nick) then AccountDelete(nick) return "You Account " .. nick .. " is removed." else return "Your Account " .. nick .. " is not in registered users list." end end RegCommand("regme", "chat", "Self registration command.") RegCommand("unreg", "chat", "Registration remove command.")