1
mirror of git://git.acid.vegas/scroll.git synced 2024-11-25 01:26:39 +00:00

sendmsg to irc_error fix

This commit is contained in:
Dionysus 2023-06-25 03:02:21 -04:00
parent cdc15eecd8
commit 1deefcef76
Signed by: acidvegas
GPG Key ID: EF4B922DB85DC9DE

View File

@ -281,7 +281,7 @@ class Bot():
self.settings[setting] = option
await self.sendmsg(chan, color('OK', light_green))
except ValueError:
await self.sendmsg(chan, 'invalid option', 'must be a float or int')
await self.irc_error(chan, 'invalid option', 'must be a float or int')
elif setting == 'paste':
if option == 'on':
self.settings[setting] = True