diff --git a/img2irc.py b/img2irc.py index fd8410c..757b929 100644 --- a/img2irc.py +++ b/img2irc.py @@ -92,7 +92,7 @@ def convert_image(image, max_line_len, img_width, palette): if len(buf[-1].encode('utf-8', 'ignore')) > max_line_len: if img_width - 5 < 10: raise Exception('internal error') - return convert_image(image, max_line_len, img_width-5) + return convert_image(image, max_line_len, img_width-5, palette) return buf def hex_to_rgb(color): diff --git a/scroll.py b/scroll.py index 24979b2..c4e787f 100644 --- a/scroll.py +++ b/scroll.py @@ -329,6 +329,7 @@ class Bot(): await self.irc_error(chan, 'invalid option', 'must be on or off') else: self.settings[setting] = option + await self.sendmsg(chan, color('OK', light_green)) else: await self.irc_error(chan, 'invalid setting', setting) elif len(args) == 2: