parameters: (self, c, e)
docstring: [Internal]
docstring_summary: [Internal]
docstring_tokens: [ Internal ]
function: def _on_mode(self, c, e):
          """[Internal]"""
          modes = parse_channel_modes(" ".join(e.arguments()))
          t = e.target()
          if is_channel(t):
              ch = self.channels[t]
              for mode in modes:
                  if mode[0] == "+":
                      f = ch.set_mode
                  else:
                      f = ch.clear_mode
                  f(mode[1], mode[2])
          else:
              # Mode on self... XXX
              pass
function_tokens: def _on_mode ( self , c , e ) : modes = parse_channel_modes ( " " . join ( e . arguments ( ) ) ) t = e . target ( ) if is_channel ( t ) : ch = self . channels [ t ] for mode in modes : if mode [ 0 ] == "+" : f = ch . set_mode else : f = ch . clear_mode f ( mode [ 1 ] , mode [ 2 ] ) else : # Mode on self... XXX pass