Compare commits

..

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
4 changed files with 10 additions and 10 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

@ -37,14 +37,10 @@ import supybot
from supybot import world
# Use this for the version of this plugin.
__version__ = "0.1.1"
__version__ = ""
# XXX Replace this with an appropriate author or supybot.Author instance.
if not hasattr(supybot.authors, 'mogad0n'):
supybot.authors.mogad0n =supybot.Author('Pratyush Desai', 'mogad0n',
'pratyushndesai@gmail.com')
__author__ = supybot.authors.mogad0n
__author__ = supybot.authors.unknown
# This is a dictionary mapping supybot.Author instances to lists of
# contributions.

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