diff options
author | Kevin Smith <git@kismith.co.uk> | 2012-07-28 12:25:00 (GMT) |
---|---|---|
committer | Kevin Smith <git@kismith.co.uk> | 2012-07-28 12:25:00 (GMT) |
commit | dd7de6cfb93f8812189f8365a6c8659d0686678d (patch) | |
tree | 65678eca06525bdf0acec463fd36070e2d45cd8b /Swiftob/scripts | |
parent | ea816801a9d73529bbf9eb3800fef8e85a18d6ca (diff) | |
download | swift-contrib-dd7de6cfb93f8812189f8365a6c8659d0686678d.zip swift-contrib-dd7de6cfb93f8812189f8365a6c8659d0686678d.tar.bz2 |
Allow Swiftob message listeners to ignore the bot's messages
Diffstat (limited to 'Swiftob/scripts')
-rw-r--r-- | Swiftob/scripts/badWords.lua | 2 | ||||
-rw-r--r-- | Swiftob/scripts/irssiLogs.lua | 2 | ||||
-rw-r--r-- | Swiftob/scripts/logAllMessages.lua | 2 | ||||
-rw-r--r-- | Swiftob/scripts/urlGrabber.lua | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/Swiftob/scripts/badWords.lua b/Swiftob/scripts/badWords.lua index 2c16214..d801f97 100644 --- a/Swiftob/scripts/badWords.lua +++ b/Swiftob/scripts/badWords.lua @@ -11,5 +11,5 @@ function bad_words(body, muc, nick, message) end end -swiftob_register_listener(bad_words) +swiftob_register_listener(bad_words, false) diff --git a/Swiftob/scripts/irssiLogs.lua b/Swiftob/scripts/irssiLogs.lua index 3cecd9d..22134a1 100644 --- a/Swiftob/scripts/irssiLogs.lua +++ b/Swiftob/scripts/irssiLogs.lua @@ -19,5 +19,5 @@ function irssi_log_message(body, muc, nick, message) irssi_log_to_file(muc, time.." <"..nick.."> "..body) end -swiftob_register_listener(irssi_log_message) +swiftob_register_listener(irssi_log_message, true) diff --git a/Swiftob/scripts/logAllMessages.lua b/Swiftob/scripts/logAllMessages.lua index a14c0f3..f8c602a 100644 --- a/Swiftob/scripts/logAllMessages.lua +++ b/Swiftob/scripts/logAllMessages.lua @@ -3,4 +3,4 @@ function log_a_message(body, muc, nick, message) print(body) end -swiftob_register_listener(log_a_message) +swiftob_register_listener(log_a_message, true) diff --git a/Swiftob/scripts/urlGrabber.lua b/Swiftob/scripts/urlGrabber.lua index 13fe182..180c582 100644 --- a/Swiftob/scripts/urlGrabber.lua +++ b/Swiftob/scripts/urlGrabber.lua @@ -26,5 +26,5 @@ function url_grabber(body, muc, nick, message) end end -swiftob_register_listener(url_grabber) +swiftob_register_listener(url_grabber, false) |