Skip to content

Commit 392e790

Browse files
committed
Fix core_tracker.py using the incorrect methods and parameters
1 parent 35ed840 commit 392e790

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

plugins/core_tracker.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69,23 +69,23 @@ def on_nick(irc_paramlist, conn, irc_raw):
6969
# mostly when using a BNC which saves channels
7070
@asyncio.coroutine
7171
@hook.irc_raw("JOIN")
72-
def on_join(conn, chan, target):
72+
def on_join(conn, chan, nick):
7373
"""
7474
:type conn: cloudbot.client.Client
7575
:type chan: str
7676
:type nick: str
7777
"""
78-
if target == conn.nick:
78+
if nick == conn.nick:
7979
bot_joined_channel(conn, chan)
8080

8181

8282
@asyncio.coroutine
8383
@hook.irc_raw("PART")
84-
def on_join(conn, chan, target):
84+
def on_part(conn, chan, nick):
8585
"""
8686
:type conn: cloudbot.client.Client
8787
:type chan: str
8888
:type nick: str
8989
"""
90-
if target == conn.nick:
91-
bot_joined_channel(conn, chan)
90+
if nick == conn.nick:
91+
bot_left_channel(conn, chan)

0 commit comments

Comments
 (0)