Guest User

Untitled

a guest
Jan 11th, 2019
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.84 KB | None | 0 0
  1. --irc.register_callback("channel_msg", function(channel, from, message)
  2.     if from == "Sjele" and string.find(string.lower(message),"lock you sjbaot") then
  3.         if lock == nil then
  4.             lock = true
  5.             irc.say(channel, "State has been changed")
  6.             return
  7.         end
  8.         irc.say(channel, "Locked status altred")
  9.         lock = not lock
  10.     end
  11.     --local is_cmd, cmd, arg = message:match("^(**)(%w+) (.*)$")   
  12.             --if is_cmd and plugin[cmd] then
  13.                 if lock == true then
  14.                     if from ~="Sjele" then
  15.                         irc.say(channel, "Baot is locked")
  16.                         return
  17.                     end
  18.                 end
  19.                 --plugin[cmd](channel.name, from, arg)
  20.             --end
  21.             --for k,v in pairs(callback) do
  22.                 --if type(v) == "function" then
  23.                     --v(channel.name, from, message)
  24.                 --end
  25.             --end
  26.         --end --remove meh
  27.     --end -- Does nothing, i will remove   
  28. --end)
  29.  
  30. Every line that has a -- is no need for you.
Add Comment
Please, Sign In to add comment