

def __init__(self, server, config, log, wrapper, address, port, nickname, channels):
    self.socket = False
    self.server = server
    self.config = config
    self.wrapper = wrapper
    self.address = address
    self.port = port
    self.nickname = nickname
    self.originalNickname = nickname[0:]
    self.nickAttempts = 0
    self.channels = channels
    self.log = log
    self.timeout = False
    self.ready = False
    self.msgQueue = []
    self.api = api.API(self.wrapper, 'IRC', internal=True)
    self.api.registerEvent('server.starting', self.onServerStarting)
    self.api.registerEvent('server.started', self.onServerStarted)
    self.api.registerEvent('server.stopping', self.onServerStopping)
    self.api.registerEvent('server.stopped', self.onServerStopped)
    self.api.registerEvent('player.login', self.onPlayerLogin)
    config.api.registerEvent('player.message', self.onPlayerMessage)
    self.api.registerEvent('player.action', self.onPlayerAction)
    self.api.registerEvent('player.logout', self.onPlayerLogout)
    self.api.registerEvent('player.achievement', self.onPlayerAchievement)
    self.api.registerEvent('player.death', self.onPlayerDeath)
    self.api.registerEvent('wrapper.backupBegin', self.onBackupBegin)
    self.api.registerEvent('wrapper.backupEnd', self.onBackupEnd)
    self.api.registerEvent('wrapper.backupFailure', self.onBackupFailure)
    self.api.registerEvent('server.say', self.onPlayerSay)

dataset/ETHPy150Open benbaptist/minecraft-wrapper/src/irc.py IRC.__init__/VarMisuse@199/247 `self`->`config`