

@internationalizeDocstring
def op(self, irc, msg, args, channel):
    "[<channel>]\n\n        Attempts to get opped by ChanServ in <channel>.  <channel> is only\n        necessary if the message isn't sent in the channel itself.\n        "
    if (irc.nick in irc.state.channels[channel].ops):
        irc.error(format(_("I'm already opped in %s."), channel))
    else:
        self._chanservCommand(irc, channel, 'op')

dataset/ETHPy150Open ProgVal/Limnoria/plugins/Services/plugin.py Services.op/original