Uncommitted stuff

This commit is contained in:
Paul Mathieu 2022-10-21 23:09:55 +01:00
parent e0bdc6b3dd
commit 5b30cb8bc2
7 changed files with 421 additions and 420 deletions

View File

@ -103,16 +103,17 @@ class TCPClient:
self.sendto(who, "Module '%s' unloaded." % nargs[0])
if ncmd == "load":
if nargs[0] in [x.name for x in self.modules]:
self.sendto(who, "ERROR: Module '%s' already loaded" % str(e))
for arg in nargs:
if arg in [x.name for x in self.modules]:
self.sendto(who, "ERROR: Module '%s' already loaded" % arg)
else:
try:
mod = monmodule(nargs[0], self)
mod = monmodule(arg, self)
except Exception, e:
self.sendto(who, "ERROR: %s" % str(e))
else:
self.modules.append(mod)
self.sendto(who, "Module '%s' loaded." % nargs[0])
self.sendto(who, "Module '%s' loaded." % arg)
def on_pubchat(self, who, chan, msg):
if msg[:len(self.nick)] == self.nick: