Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function xchat_register()
- return "nick.lua", "nick nack", "0.1"
- end
- function xchat_init()
- xchat.hook_command("", "cmd_nicks")
- end
- function xchat_unload()
- end
- function cmd_nicks(word, eol, data)
- local text = eol[1]
- if (string.sub(text, 1, 1) ~= "~") then
- return xchat.EAT_NONE
- end
- local nick = string.sub(text, 2)
- if (nick == "me" or string.len(nick) < 2) then
- xchat.commandf("nick ConnorBhoy")
- else
- xchat.commandf("nick ConnorBhoy|%s", nick)
- end
- return xchat.EAT_NONE
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement