Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local tmp = readLine():sub(1,-3)
- if tmp == nil then return false end
- data = split(tmp, ":")
- cmd = split(data[2], " ")
- if string.lower(cmd[2]) == "ping" then -- <---- here is an error because cmd[2] seems to be nil
- sockWrite("PONG :"..data[2])
- elseif string.lower(cmd[2]) == "privmsg" then
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement