var report = function(dbot) { var commands = { '~report': function(event) { var channelName = event.input[1]; var nick = event.input[2]; var reason = event.input[3]; if(dbot.instance.connections[event.server].channels.hasOwnProperty(channelName)) { var channel = dbot.instance.connections[event.server].channels[channelName]; if(channel.nicks.hasOwnProperty(nick)) { var ops = []; for(var possibOps in channel.nicks) { if(channel.nicks[possibOps].op == true) { ops.push(possibOps); } } for(var i=0;i