diff options
author | jluehrs2 <jluehrs2@uiuc.edu> | 2007-09-04 21:39:27 -0500 |
---|---|---|
committer | jluehrs2 <jluehrs2@uiuc.edu> | 2007-09-04 21:39:27 -0500 |
commit | 9e7fab4e4c1bd7b179b3fd72a40b1d9c3a669e3b (patch) | |
tree | a7f314fd0017923837dcba6f35527f31f55dcdef | |
parent | 64811ca00f0668e12ae744a2db7730497e086bd8 (diff) | |
download | luairc-9e7fab4e4c1bd7b179b3fd72a40b1d9c3a669e3b.tar.gz luairc-9e7fab4e4c1bd7b179b3fd72a40b1d9c3a669e3b.zip |
add some more useful output in the test script
-rw-r--r-- | test/test.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/test.lua b/test/test.lua index e2910ee..02ed4da 100644 --- a/test/test.lua +++ b/test/test.lua @@ -197,21 +197,25 @@ end irc.register_callback("private_act", on_private_act) local function on_op(chan, from, nick) + print(nick .. " was opped in " .. chan .. " by " .. from) print_state() end irc.register_callback("op", on_op) local function on_deop(chan, from, nick) + print(nick .. " was deopped in " .. chan .. " by " .. from) print_state() end irc.register_callback("deop", on_deop) local function on_voice(chan, from, nick) + print(nick .. " was voiced in " .. chan .. " by " .. from) print_state() end irc.register_callback("voice", on_voice) local function on_devoice(chan, from, nick) + print(nick .. " was devoiced in " .. chan .. " by " .. from) print_state() end irc.register_callback("devoice", on_devoice) |