summaryrefslogtreecommitdiff
path: root/irc/pylon.lua
diff options
context:
space:
mode:
Diffstat (limited to 'irc/pylon.lua')
-rw-r--r--irc/pylon.lua8
1 files changed, 5 insertions, 3 deletions
diff --git a/irc/pylon.lua b/irc/pylon.lua
index db88c6c..11c8250 100644
--- a/irc/pylon.lua
+++ b/irc/pylon.lua
@@ -34,9 +34,10 @@ function Irc.recving(self)
local channel_name = msg.args[1]
local body = msg.args[2]
local sender = msg.source
- self.wilson:deliver(Channel(self, channel_name), {
+ self.wilson:deliver({
+ source_channel = Channel(self, channel_name),
body = body,
- sender = sender..'[i]'
+ sender = sender,
})
elseif msg.op == 'ERROR' then
error(msg.args[1])
@@ -64,8 +65,9 @@ function Irc.sending(self)
say('WILSON', '#test', 'i am wilson')
for dest_channel, message in self.inbox:iter() do
+ local nick = message.sender.."["..message.source_channel.pylon.shortname.."]"
local channel_name = dest_channel.descriptor
- say(message.sender, channel_name, message.body)
+ say(nick, channel_name, message.body)
end
end