def __str__(self): return format_line(*self.to_tuple())
def write(self, command, parameters=None, trailing=None): """Format an IRC message and send it""" self._write(format_line(None, command, parameters, trailing))