Advertisement
Stiepen

Untitled

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