Compare commits

...
This repository has been archived on 2021-08-20. You can view files and clone it, but cannot push or open issues or pull requests.

2 Commits

Author SHA1 Message Date
bc5b2f4e32
latest build 2021-08-18 16:16:04 +05:30
fc34ba12f0
NFI 2021-08-06 04:38:53 +05:30
3 changed files with 8 additions and 4 deletions

3
.gitignore vendored
View File

@ -1 +1,2 @@
env/
env/
.discussion

View File

@ -1 +1,3 @@
# EgoServ - Limnoria Plugin
Suite of tools to help Network Operators run their ErgoIRCd nets

View File

@ -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):