Refactor separator and addon prefix out of options
This commit is contained in:
@@ -1,4 +1,9 @@
|
||||
-- CHAT_MSG_ADDON
|
||||
function(e, ...)
|
||||
print(e, ...)
|
||||
function(e, prefix, msg, ...)
|
||||
print(string.format("e = %s", e))
|
||||
print(string.format("prefix = %s", prefix))
|
||||
print(string.format("msg = %s", msg))
|
||||
for i = 1, select("#", ...) do
|
||||
print(string.format("arg %d = %s", i, select(i, ...)))
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user