Skip to content

Commit 272c625

Browse files
authored
Merge pull request CloudBotIRC#279 from linuxdaemon/gonzobot+fix-deloptout
Fix deloptout command errors
2 parents e7ce46a + 6ea720f commit 272c625

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

plugins/core/optout.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ def deloptout(text, event, chan, db, conn):
221221

222222
pattern = args.pop(0)
223223

224-
deleted = yield from event.async_call(del_optout, db, conn, chan, pattern)
224+
deleted = yield from event.async_call(del_optout, db, conn.name, chan, pattern)
225225

226226
if deleted:
227227
return "Deleted optout '{}' in channel '{}'.".format(pattern, chan)

0 commit comments

Comments
 (0)