summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2024-03-15 12:42:13 +0000
committerSadie Powell <sadie@witchery.services>2024-03-15 12:42:13 +0000
commit753119c4a16f6dafacbeb3d98fe72133badca949 (patch)
treeac57504794ae2ff44a98207c77ef087d9a2a4c38 /include
parentd996c3aa8fccb032332aa8e2ea12d07127cae969 (diff)
Use consistent casing when referring to vhosts and vidents.
Diffstat (limited to 'include')
-rw-r--r--include/account.h16
-rw-r--r--include/language.h12
-rw-r--r--include/modules.h6
-rw-r--r--include/protocol.h4
4 files changed, 19 insertions, 19 deletions
diff --git a/include/account.h b/include/account.h
index 714369152..fcc715135 100644
--- a/include/account.h
+++ b/include/account.h
@@ -65,41 +65,41 @@ public:
* @param creator Who created the vhost
* @param time When the vhost was created
*/
- void SetVhost(const Anope::string &ident, const Anope::string &host, const Anope::string &creator, time_t created = Anope::CurTime);
+ void SetVHost(const Anope::string &ident, const Anope::string &host, const Anope::string &creator, time_t created = Anope::CurTime);
/** Remove a users vhost
**/
- void RemoveVhost();
+ void RemoveVHost();
/** Check if the user has a vhost
* @return true or false
*/
- bool HasVhost() const;
+ bool HasVHost() const;
/** Retrieve the vhost ident
* @return the ident
*/
- const Anope::string &GetVhostIdent() const;
+ const Anope::string &GetVHostIdent() const;
/** Retrieve the vhost host
* @return the host
*/
- const Anope::string &GetVhostHost() const;
+ const Anope::string &GetVHostHost() const;
/** Retrieve the vhost mask
* @param the mask
*/
- Anope::string GetVhostMask() const;
+ Anope::string GetVHostMask() const;
/** Retrieve the vhost creator
* @return the creator
*/
- const Anope::string &GetVhostCreator() const;
+ const Anope::string &GetVHostCreator() const;
/** Retrieve when the vhost was created
* @return the time it was created
*/
- time_t GetVhostCreated() const;
+ time_t GetVHostCreated() const;
/** Finds a registered nick
* @param nick The nick to lookup
diff --git a/include/language.h b/include/language.h
index 8fdcdc18a..12374ec88 100644
--- a/include/language.h
+++ b/include/language.h
@@ -121,9 +121,9 @@ namespace Language
#define BOT_DOES_NOT_EXIST _("Bot \002%s\002 does not exist.")
#define BOT_NOT_ASSIGNED _("You must assign a bot to the channel before using this command.")
#define BOT_NOT_ON_CHANNEL _("Bot is not on channel \002%s\002.")
-#define HOST_SET_ERROR _("A vHost must be in the format of a valid hostname.")
-#define HOST_SET_IDENT_ERROR _("A vHost ident must be in the format of a valid ident.")
-#define HOST_SET_TOOLONG _("Error! The vHost is too long, please use a hostname shorter than %zu characters.")
-#define HOST_SET_IDENTTOOLONG _("Error! The vHost ident is too long, please use an ident shorter than %zu characters.")
-#define HOST_NOT_ASSIGNED _("Please contact an Operator to get a vHost assigned to this nick.")
-#define HOST_NO_VIDENT _("Your IRCd does not support vIdent's, if this is incorrect, please report this as a possible bug")
+#define HOST_SET_ERROR _("A vhost must be in the format of a valid hostname.")
+#define HOST_SET_IDENT_ERROR _("A vident must be in the format of a valid ident.")
+#define HOST_SET_TOOLONG _("Error! The vhost is too long, please use a hostname shorter than %zu characters.")
+#define HOST_SET_IDENTTOOLONG _("Error! The vident is too long, please use an ident shorter than %zu characters.")
+#define HOST_NOT_ASSIGNED _("Please contact an Operator to get a vhost assigned to this nick.")
+#define HOST_NO_VIDENT _("Your IRCd does not support vidents. If this is incorrect please report this as a possible bug.")
diff --git a/include/modules.h b/include/modules.h
index 34e1d4467..8723e623c 100644
--- a/include/modules.h
+++ b/include/modules.h
@@ -838,12 +838,12 @@ public:
/** Called when a vhost is deleted
* @param na The nickalias of the vhost
*/
- virtual void OnDeleteVhost(NickAlias *na) { throw NotImplementedException(); }
+ virtual void OnDeleteVHost(NickAlias *na) { throw NotImplementedException(); }
/** Called when a vhost is set
* @param na The nickalias of the vhost
*/
- virtual void OnSetVhost(NickAlias *na) { throw NotImplementedException(); }
+ virtual void OnSetVHost(NickAlias *na) { throw NotImplementedException(); }
/** Called when a users host changes
* @param u The user
@@ -1081,7 +1081,7 @@ enum Implementation
I_OnUserLogin, I_OnNickLogout, I_OnNickRegister, I_OnNickConfirm, I_OnNickSuspend, I_OnNickUnsuspended, I_OnDelNick, I_OnNickCoreCreate,
I_OnDelCore, I_OnChangeCoreDisplay, I_OnNickClearCert,
I_OnNickAddCert, I_OnNickEraseCert, I_OnNickInfo, I_OnBotInfo, I_OnCheckAuthentication, I_OnNickUpdate,
- I_OnFingerprint, I_OnUserAway, I_OnInvite, I_OnDeleteVhost, I_OnSetVhost, I_OnSetDisplayedHost, I_OnMemoSend, I_OnMemoDel,
+ I_OnFingerprint, I_OnUserAway, I_OnInvite, I_OnDeleteVHost, I_OnSetVHost, I_OnSetDisplayedHost, I_OnMemoSend, I_OnMemoDel,
I_OnChannelModeSet, I_OnChannelModeUnset, I_OnUserModeSet, I_OnUserModeUnset, I_OnChannelModeAdd, I_OnUserModeAdd,
I_OnMLock, I_OnUnMLock, I_OnModuleLoad, I_OnModuleUnload, I_OnServerSync, I_OnUplinkSync, I_OnBotPrivmsg, I_OnBotNotice,
I_OnPrivmsg, I_OnLog, I_OnLogMessage, I_OnDnsRequest, I_OnCheckModes, I_OnChannelSync, I_OnSetCorrectModes,
diff --git a/include/protocol.h b/include/protocol.h
index 036332464..c74720bc4 100644
--- a/include/protocol.h
+++ b/include/protocol.h
@@ -159,8 +159,8 @@ public:
* @param vident The ident to set
* @param vhost The vhost to set
*/
- virtual void SendVhost(User *u, const Anope::string &vident, const Anope::string &vhost) { }
- virtual void SendVhostDel(User *) { }
+ virtual void SendVHost(User *u, const Anope::string &vident, const Anope::string &vhost) { }
+ virtual void SendVHostDel(User *) { }
/** Sets an akill. This is a recursive function that can be called multiple times
* for the same xline, but for different users, if the xline is not one that can be