summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPratyush Desai2021-08-06 04:38:53 +0530
committerPratyush Desai2021-08-06 04:38:53 +0530
commitfc34ba12f02b08a404344ab2ebb0c5620eaf3dc3 (patch)
treef8ce938a97bc274595223db72922e06320c51be7
parent9607ee7cad74e9627bb78aeb075cc86fe6ac70ba (diff)
downloadegoserv-fc34ba12f02b08a404344ab2ebb0c5620eaf3dc3.tar.gz
egoserv-fc34ba12f02b08a404344ab2ebb0c5620eaf3dc3.tar.bz2
egoserv-fc34ba12f02b08a404344ab2ebb0c5620eaf3dc3.zip
NFI
-rw-r--r--plugin.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/plugin.py b/plugin.py
index 289d60d..a40a029 100644
--- a/plugin.py
+++ b/plugin.py
@@ -231,15 +231,16 @@ class EgoServ(callbacks.Plugin):
flag = '-a'
elif mode == 'deop':
flag = '-o'
- else:
- irc.error(f'Supplied mode {mode} is not allowed/valid')
for nick in nicks:
irc.queueMsg(msg=ircmsgs.IrcMsg(command='PRIVMSG',
args=('chanserv', f'amode {channel} {flag} {nick}')))
+ else:
+ irc.error(f'Supplied mode {mode} is BAD INPUT!')
# Would love to handle responses for when it's not an account,
# https://github.com/ergochat/ergo/issues/1515 Waiting for this.
- irc.replySuccess(f'Setting mode {flag} on given nick(s), if nick(s) weren\'t given the {flag} mode it/they is/are unregistered')
+ irc.replySuccess(f'= Auto {flag} applied to \x02registered\x0F nicks!')
+
@wrap([many('channel')])
def chanreg(self, irc, msg, args, channels):