From 8cc65f8cbb2599e9063c9af4d4afa75196501cf3 Mon Sep 17 00:00:00 2001 From: iou1name Date: Fri, 10 Jan 2020 06:51:50 -0500 Subject: [PATCH] bugfix --- modules/movie.py | 4 ++-- modules/topic.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/movie.py b/modules/movie.py index 79a6551..52d8cb2 100755 --- a/modules/movie.py +++ b/modules/movie.py @@ -157,8 +157,8 @@ def pickMovie(bot, trigger): @require_admin @commands('addmovie') -@example('.addmovie Dr. Strangelove or: How I Learned to Stop Worrying and " - "Love the Bomb') +@example(".addmovie Dr. Strangelove or: How I Learned to Stop Worrying and " + "Love the Bomb") def addMovie(bot, trigger): """ Adds the specified movie to the movie database. diff --git a/modules/topic.py b/modules/topic.py index f71c67b..ec0d094 100755 --- a/modules/topic.py +++ b/modules/topic.py @@ -50,7 +50,7 @@ def addTopic(bot, trigger): """ if len(trigger.args) < 2: return bot.msg("Please be providing a topic sir.") - topic = trigger.args[1] + topic = ' '.join(trigger.args[1:]) bot.memory['topic_lock'].acquire() try: bot.db.execute("INSERT INTO topic (topic, added_by) VALUES(?,?)",