summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swiftob/scripts/irssiLogs.lua')
-rw-r--r--Swiftob/scripts/irssiLogs.lua23
1 files changed, 0 insertions, 23 deletions
diff --git a/Swiftob/scripts/irssiLogs.lua b/Swiftob/scripts/irssiLogs.lua
deleted file mode 100644
index 3cecd9d..0000000
--- a/Swiftob/scripts/irssiLogs.lua
+++ /dev/null
@@ -1,23 +0,0 @@
-function irssi_log_to_file(muc, line)
- filename = muc:gsub("@", "_at_")
- filename = filename:gsub("%.%.", "_")
- filename = filename:gsub("/", "_")
- filename = filename:gsub("\\", "_")
- file = io.open(filename, "a+")
- if file == nil then
- io.close()
- else
- file:write(line)
- file:write("\n")
- file:close()
- end
-
-end
-
-function irssi_log_message(body, muc, nick, message)
- time = os.date("%H:%M")
- irssi_log_to_file(muc, time.." <"..nick.."> "..body)
-end
-
-swiftob_register_listener(irssi_log_message)
-