fixed %N for masshl

This commit is contained in:
wowaname 2016-03-04 15:36:32 +00:00
parent 2c39155159
commit e2e88eac2c

View File

@ -43,8 +43,8 @@ class Loop():
i += 1
if self.N_param:
N_nicks += " %s" % nick
# weechat.prnt(
if (nick != self.nicks[-1] or
weechat.prnt("", "%s ; %s" % (nick, self.nicks[-1]))
if (nick != self.nicks[-1] and
len(output) + len(N_nicks) + len(self.nicks[i]) < 300):
continue
else: output = self.input.replace("%n",nick)
@ -57,6 +57,7 @@ class Loop():
weechat.command(self.buffer, output) #.encode("UTF-8"))
# sleep(self.delay)
output = self.input
N_nicks = ""
def masshl_cmd_cb(data, buffer, args):
input = args