Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
bc5b2f4e32 | |||
fc34ba12f0 |
3
.gitignore
vendored
3
.gitignore
vendored
@ -1 +1,2 @@
|
||||
env/
|
||||
env/
|
||||
.discussion
|
@ -1 +1,3 @@
|
||||
# EgoServ - Limnoria Plugin
|
||||
|
||||
Suite of tools to help Network Operators run their ErgoIRCd nets
|
||||
|
@ -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.
|
||||
|
@ -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):
|
||||
|
Reference in New Issue
Block a user