def opmeCmd(msg): msz = msg.msg.split(' ') if len(msz) == 1: client.opUser(msg.nick, msg.chan) client.send(msg.chan, '%s: Well hello there you sexy beast! About time you had OP...' % msg.nick) else: client.send(msg.chan, 'Usage: '+ opmeCmd.usage)
def opCmd(msg): msz = msg.msg.split(' ') if len(msz) == 2: client.opUser(msz[1], msg.chan) else: client.send(msg.chan, 'Usage: '+ opCmd.usage)