Skip to content

Instantly share code, notes, and snippets.

@FurryHead
Created July 1, 2011 22:49
Show Gist options
  • Save FurryHead/1059552 to your computer and use it in GitHub Desktop.
Save FurryHead/1059552 to your computer and use it in GitHub Desktop.
function handle_319(source, argms)
local user = ""
local reading_channels = false
for argm in argms:gmatch("%a+") do
if argm:match("^%:.+$") then
reading_channels = true
argm = argm:sub(2)
end
-------------------------------------------------------------
if reading_channels then
if argm:match("^%+.+$") then
if users[argm:sub(2)] then
if users[argm:sub(2)][user] != "" then
users[argm:sub(2)][user] = "+"
end
end
elseif argm:match("^%@.+$") then
if users[argm:sub(2)] then
if users[argm:sub(2)][user] != "" then
users[argm:sub(2)][user] = "@"
end
end]]
end
elseif argm ~= server:config("nick") then
user = argm
end
------------------------------------------------------------------
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment