Commit 5734a3ad authored by Benjamin Graillot's avatar Benjamin Graillot

Fix indice

parent 59668fb5
......@@ -134,7 +134,7 @@ class Ninja(Bot):
if not subscribed(channel):
conn.part(channel, "Plus d'abonnement sur {channel}".format(channel=channel))
return
channel = command[3] if command[3][0] in config.channel_start else nick
channel = command[2] if command[2][0] in config.channel_start else nick
if channel not in subs[source][nick]:
conn.privmsg(nick, "Vous n'avez pas d'abonnement à {source} sur {channel}".format(source=command[1], channel=channel))
return
......@@ -146,8 +146,8 @@ class Ninja(Bot):
if not subscribed(channel):
conn.part(channel, "Plus d'abonnement sur {channel}".format(channel=channel))
elif len(command) == 4:
if command[2].isnumeric():
n = int(command[2])
if command[3].isnumeric():
n = int(command[3])
if n < len(subs[source][channel]):
subscription = subs[source][channel][n]
del subs[source][channel][n]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment