Software /
code /
prosody-modules
Comparison
mod_ircd/mod_ircd.in.lua @ 469:ff03a325aa41
mod_ircd: ignore JOIN without channel
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Tue, 01 Nov 2011 19:46:07 +0100 |
parent | 468:640e6c0b563d |
child | 470:4f9224369e69 |
comparison
equal
deleted
inserted
replaced
468:640e6c0b563d | 469:ff03a325aa41 |
---|---|
247 -- Empty command for now | 247 -- Empty command for now |
248 end | 248 end |
249 | 249 |
250 function commands.JOIN(session, args) | 250 function commands.JOIN(session, args) |
251 local channel = args[1]; | 251 local channel = args[1]; |
252 if not channel then return end | |
252 local room_jid = irc2muc(channel); | 253 local room_jid = irc2muc(channel); |
253 print(session.full_jid); | 254 print(session.full_jid); |
254 local room, err = c:join_room(room_jid, session.nick, { source = session.full_jid } ); | 255 local room, err = c:join_room(room_jid, session.nick, { source = session.full_jid } ); |
255 if not room then | 256 if not room then |
256 return ":"..session.host.." ERR :Could not join room: "..err | 257 return ":"..session.host.." ERR :Could not join room: "..err |