Created
July 1, 2011 22:49
-
-
Save FurryHead/1059552 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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