human
Solve the following python programming problem given the following code:
def _punishRelayers(self, msg) : 
    assert self._checkRelayMsg (msg), 'Punishing without checking.' 
    who = msg.prefix 
    channel = msg.args [0] 
    def notPunishing(irc, s, * args) : 
        self.log.info ('Not punishing %s in %s on %s: %s.', msg.prefix, channel, irc.network, s, * args) 
for irc in world.ircs : 
        if (channel in irc.state.channels) : 
            if (irc.nick in irc.state.channels [channel].ops) : 
                if (kmsg in irc.state.channels [channel].bans) : 
                    notPunishing (irc, 'already banned') 
else : 
                    self.log.info ('Punishing %s in %s on %s for relaying.', who, channel, irc.network) 
                    irc.sendMsg (ircmsgs.ban (channel, who)) 
                    kmsg = _ ('You seem to be relaying, punk.') 
                    irc.sendMsg (ircmsgs.kick (channel, msg.nick, kmsg)) 
else : 
                notPunishing (irc, 'not opped') 

    
    

    Fix the buggy line: if (kmsg in irc.state.channels [channel].bans) :
assistant
#Here is Python program to fix the buggy line: if (kmsg in irc.

if (who in irc.state.channels [channel].bans) :