diff options
Diffstat (limited to 'Swiftob/scripts')
-rw-r--r-- | Swiftob/scripts/logAllMessages.lua | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Swiftob/scripts/logAllMessages.lua b/Swiftob/scripts/logAllMessages.lua new file mode 100644 index 0000000..a14c0f3 --- /dev/null +++ b/Swiftob/scripts/logAllMessages.lua @@ -0,0 +1,6 @@ +function log_a_message(body, muc, nick, message) + print("Received line from '" .. nick .. "' in '" .. muc .. "':") + print(body) +end + +swiftob_register_listener(log_a_message) |