mirror of
https://github.com/anope/anope.git
synced 2026-07-09 10:03:14 +02:00
Remove unused event.
Mark some oper only usermodes as oper only. Fix reading SID in TS6_SID_Retrieve
This commit is contained in:
+1
-6
@@ -719,11 +719,6 @@ class CoreExport Module : public Extensible
|
||||
*/
|
||||
virtual void OnNickDrop(CommandSource &source, NickAlias *na) { throw NotImplementedException(); }
|
||||
|
||||
/** Called when a nick is forbidden
|
||||
* @param na The nick alias of the forbidden nick
|
||||
*/
|
||||
virtual void OnNickForbidden(NickAlias *na) { throw NotImplementedException(); }
|
||||
|
||||
/** Called when a user groups their nick
|
||||
* @param u The user grouping
|
||||
* @param target The target they're grouping to
|
||||
@@ -1094,7 +1089,7 @@ enum Implementation
|
||||
I_OnPreUserLogoff, I_OnPostUserLogoff, I_OnBotCreate, I_OnBotChange, I_OnBotDelete, I_OnAccessDel, I_OnAccessAdd,
|
||||
I_OnAccessClear, I_OnLevelChange, I_OnChanDrop, I_OnChanRegistered, I_OnChanSuspend, I_OnChanUnsuspend,
|
||||
I_OnCreateChan, I_OnDelChan, I_OnChannelCreate, I_OnChannelDelete, I_OnAkickAdd, I_OnAkickDel, I_OnCheckKick,
|
||||
I_OnChanInfo, I_OnCheckPriv, I_OnGroupCheckPriv, I_OnNickDrop, I_OnNickForbidden, I_OnNickGroup, I_OnNickIdentify,
|
||||
I_OnChanInfo, I_OnCheckPriv, I_OnGroupCheckPriv, I_OnNickDrop, I_OnNickGroup, I_OnNickIdentify,
|
||||
I_OnUserLogin, I_OnNickLogout, I_OnNickRegister, I_OnNickSuspend, I_OnNickUnsuspended, I_OnDelNick, I_OnNickCoreCreate,
|
||||
I_OnDelCore, I_OnChangeCoreDisplay, I_OnNickClearAccess, I_OnNickAddAccess, I_OnNickEraseAccess, I_OnNickClearCert,
|
||||
I_OnNickAddCert, I_OnNickEraseCert, I_OnNickInfo, I_OnBotInfo, I_OnCheckAuthentication, I_OnNickUpdate,
|
||||
|
||||
@@ -610,7 +610,7 @@ class ProtoHybrid : public Module
|
||||
ModeManager::AddUserMode(new UserModeOperOnly("CALLERID", 'g'));
|
||||
ModeManager::AddUserMode(new UserMode("INVIS", 'i'));
|
||||
ModeManager::AddUserMode(new UserModeOperOnly("LOCOPS", 'l'));
|
||||
ModeManager::AddUserMode(new UserMode("OPER", 'o'));
|
||||
ModeManager::AddUserMode(new UserModeOperOnly("OPER", 'o'));
|
||||
ModeManager::AddUserMode(new UserModeNoone("REGISTERED", 'r'));
|
||||
ModeManager::AddUserMode(new UserModeOperOnly("SNOMASK", 's'));
|
||||
ModeManager::AddUserMode(new UserMode("WALLOPS", 'w'));
|
||||
|
||||
@@ -333,10 +333,10 @@ class ProtoPlexus : public Module
|
||||
ModeManager::AddUserMode(new UserMode("CALLERID", 'g'));
|
||||
ModeManager::AddUserMode(new UserMode("INVIS", 'i'));
|
||||
ModeManager::AddUserMode(new UserModeOperOnly("LOCOPS", 'l'));
|
||||
ModeManager::AddUserMode(new UserMode("OPER", 'o'));
|
||||
ModeManager::AddUserMode(new UserModeOperOnly("OPER", 'o'));
|
||||
ModeManager::AddUserMode(new UserModeOperOnly("NETADMIN", 'N'));
|
||||
ModeManager::AddUserMode(new UserMode("PRIV", 'p'));
|
||||
ModeManager::AddUserMode(new UserMode("ROUTING", 'q'));
|
||||
ModeManager::AddUserMode(new UserModeOperOnly("ROUTING", 'q'));
|
||||
ModeManager::AddUserMode(new UserModeNoone("REGISTERED", 'r'));
|
||||
ModeManager::AddUserMode(new UserMode("REGPRIV", 'R'));
|
||||
ModeManager::AddUserMode(new UserModeOperOnly("SNOMASK", 's'));
|
||||
|
||||
@@ -253,7 +253,7 @@ class ProtoRatbox : public Module
|
||||
// k = skill?
|
||||
ModeManager::AddUserMode(new UserModeOperOnly("LOCOPS", 'l'));
|
||||
// n = nchange
|
||||
ModeManager::AddUserMode(new UserMode("OPER", 'o'));
|
||||
ModeManager::AddUserMode(new UserModeOperOnly("OPER", 'o'));
|
||||
// r = rej
|
||||
ModeManager::AddUserMode(new UserModeOperOnly("SNOMASK", 's'));
|
||||
ModeManager::AddUserMode(new UserModeNoone("PROTECTED", 'S'));
|
||||
|
||||
+1
-1
@@ -385,7 +385,7 @@ const Anope::string Servers::TS6_SID_Retrieve()
|
||||
if (!IRCD || !IRCD->RequiresID)
|
||||
return "";
|
||||
|
||||
static Anope::string current_sid = Config->GetBlock("options")->Get<const Anope::string>("id");
|
||||
static Anope::string current_sid = Config->GetBlock("serverinfo")->Get<const Anope::string>("id");
|
||||
if (current_sid.empty())
|
||||
current_sid = "00A";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user