CyTube/chatcommand.js

10 lines
266 B
JavaScript
Raw Normal View History

2013-03-05 18:51:58 +00:00
function handle(chan, user, msg) {
if(msg.indexOf("/me ") == 0)
chan.sendMessage(user.name, msg.substring(4), "action");
else if(msg.indexOf("/sp ") == 0)
chan.sendMessage(user.name, msg.substring(4), "spoiler");
}
exports.handle = handle;