mirror of
git://git.acid.vegas/scroll.git
synced 2024-11-21 23:56:39 +00:00
Added missing alert on settings change and fixed missing palette argument
This commit is contained in:
parent
b6abd6d6f9
commit
9ccfe4aa84
@ -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 len(buf[-1].encode('utf-8', 'ignore')) > max_line_len:
|
||||||
if img_width - 5 < 10:
|
if img_width - 5 < 10:
|
||||||
raise Exception('internal error')
|
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
|
return buf
|
||||||
|
|
||||||
def hex_to_rgb(color):
|
def hex_to_rgb(color):
|
||||||
|
@ -329,6 +329,7 @@ class Bot():
|
|||||||
await self.irc_error(chan, 'invalid option', 'must be on or off')
|
await self.irc_error(chan, 'invalid option', 'must be on or off')
|
||||||
else:
|
else:
|
||||||
self.settings[setting] = option
|
self.settings[setting] = option
|
||||||
|
await self.sendmsg(chan, color('OK', light_green))
|
||||||
else:
|
else:
|
||||||
await self.irc_error(chan, 'invalid setting', setting)
|
await self.irc_error(chan, 'invalid setting', setting)
|
||||||
elif len(args) == 2:
|
elif len(args) == 2:
|
||||||
|
Loading…
Reference in New Issue
Block a user