From: jluehrs2 Date: Wed, 5 Sep 2007 02:39:27 +0000 (-0500) Subject: add some more useful output in the test script X-Git-Tag: 0.03~17 X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=9e7fab4e4c1bd7b179b3fd72a40b1d9c3a669e3b;p=luairc.git add some more useful output in the test script --- 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)