Skip to content
This repository was archived by the owner on Feb 21, 2018. It is now read-only.

Commit 86b7644

Browse files
committed
bot/svsoper: ENCAP SVSOPER properly
1 parent 2290d6c commit 86b7644

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

modules/bot/svsoper.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,17 @@ def rehash():
3939
def svsoper(cod, line, splitline, source, destination):
4040
"Forcibly opers a user"
4141

42+
if "charybdis" in cod.modules:
43+
cod.notice(source, "Error, module does not work on this IRC daemon")
44+
return
45+
4246
target = splitline[1]
4347
opertype = splitline[2]
4448

4549
target = cod.findClientByNick(target)
4650

47-
cod.sendLine(":%s SVSOPER %s :%s" % (cod.sid, target.uid, opertype))
51+
cod.sendLine(":%s ENCAP %s SVSOPER %s :%s" % (cod.sid, target.sid, target.uid, opertype))
4852

49-
cod.servicesLog("SVSOPER: %s as %s" %
50-
(source.nick, splitline[1]))
53+
cod.servicesLog("SVSOPER: %s: %s as %s" %
54+
(source.nick, splitline[1], splitline[-1]))
5155

0 commit comments

Comments
 (0)