Changeset

469:ff03a325aa41

mod_ircd: ignore JOIN without channel
author Kim Alvefur <zash@zash.se>
date Tue, 01 Nov 2011 19:46:07 +0100
parents 468:640e6c0b563d
children 470:4f9224369e69
files mod_ircd/mod_ircd.in.lua
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mod_ircd/mod_ircd.in.lua	Tue Nov 01 19:18:30 2011 +0100
+++ b/mod_ircd/mod_ircd.in.lua	Tue Nov 01 19:46:07 2011 +0100
@@ -249,6 +249,7 @@
 
 function commands.JOIN(session, args)
 	local channel = args[1];
+	if not channel then return end
 	local room_jid = irc2muc(channel);
 	print(session.full_jid);
 	local room, err = c:join_room(room_jid, session.nick, { source = session.full_jid } );