def send(self, *data, first=None, sep=None, notice=False, privmsg=False, prefix=None): new = [] for line in data: if isinstance(line, Message): line = line.format() new.append(line) if self.is_fake: # Leave out 'fake' from the message; get_context_type() takes care of that debuglog("Would message {0} {1}: {2!r}".format( self.get_context_type(), self.name, " ".join(new))) return send_type = self.get_send_type(is_notice=notice, is_privmsg=privmsg) send_type, send_chan = self.use_cprivmsg(send_type) name = self.name if prefix is not None: name = prefix + name if first is None: first = "" if sep is None: sep = " " _send(new, first, sep, self.client, send_type, name, send_chan)
def send(self, *data, first=None, sep=None, notice=False, privmsg=False, prefix=None): if self.is_fake: # Leave out 'fake' from the message; get_context_type() takes care of that debuglog("Would message {0} {1}: {2!r}".format(self.get_context_type(), self.name, " ".join(data))) return send_type = self.get_send_type(is_notice=notice, is_privmsg=privmsg) name = self.name if prefix is not None: name = prefix + name if first is None: first = "" if sep is None: sep = " " _send(data, first, sep, self.client, send_type, name)