Comparison

mod_ircd/mod_ircd.in.lua @ 485:f8cc2be7e16a

mod_ircd: removed role check.
author Marco Cirillo <maranda@lightwitch.org>
date Mon, 28 Nov 2011 16:27:41 +0000
parent 484:0b75c7d41b82
child 487:8bdab5489653
comparison
equal deleted inserted replaced
484:0b75c7d41b82 485:f8cc2be7e16a
456 channel = utf8_clean(channel); 456 channel = utf8_clean(channel);
457 topic = utf8_clean(topic); 457 topic = utf8_clean(topic);
458 if not channel then return end 458 if not channel then return end
459 local room = session.rooms[channel]; 459 local room = session.rooms[channel];
460 460
461 if topic and room.occupants[room.nick]["role"] == "moderator" then room:set_subject(topic); end 461 if topic then room:set_subject(topic); end
462 end 462 end
463 463
464 function commands.WHO(session, args) 464 function commands.WHO(session, args)
465 local channel = args[1]; 465 local channel = args[1];
466 if session.rooms[channel] then 466 if session.rooms[channel] then