Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add SVSO command which services can use to make someone IRCOp.
This existed in UnrealIRCd 3.2.x but was later removed when switching to the new operclass system. Requested by Valware in https://bugs.unrealircd.org/view.php?id=6041 Syntax: SVSO <uid|nick> <oper account> <operclass> <class> <modes> <snomask> <vhost> All these parameters need to be set, you cannot leave any of them out, HOWEVER some can be set to "-" to skip setting them, this is true for: <class>, <modes>, <snomask>, <vhost> In UnrealIRCd the <operclass> will be prefixed by "services:" if not already present. It is up to you to include or omit it. If you want to set any swhoises you need to use the SWHOIS s2s command, other than that this command basically does everything for you, in fact it uses the same code as the OPER command does. Most of the "user is now ircop" code has been moved out of cmd_oper() to a new function make_oper() that is called by both cmd_oper() and cmd_svso(). This function also changes the hook HOOKTYPE_LOCAL_OPER: It no longer passes a ConfigItem_oper struct, since we can't do that for remote opers. Instead it passes oper name and oper class. The complete definition is now: int hooktype_local_oper(Client *client, int add, const char *oper_block, const char *operclass);
- Loading branch information
Showing
14 changed files
with
270 additions
and
91 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.