summaryrefslogtreecommitdiff
path: root/include/protocol.h
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2012-11-26 22:57:51 -0500
committerAdam <Adam@anope.org>2012-11-26 23:09:26 -0500
commit8a6962fc363410928dc8d7c197fd3fbf3e315597 (patch)
tree7eac6e127be5e4b691e96a1053f114870cc449aa /include/protocol.h
parentf23bad140b3abf3350c552c27c4e1d995337ce79 (diff)
Keep track on what ircds we can svsjoin, add an svspart method
Diffstat (limited to 'include/protocol.h')
-rw-r--r--include/protocol.h16
1 files changed, 13 insertions, 3 deletions
diff --git a/include/protocol.h b/include/protocol.h
index 7d86693bc..a11335172 100644
--- a/include/protocol.h
+++ b/include/protocol.h
@@ -43,8 +43,10 @@ class CoreExport IRCDProto : public Service
const Anope::string &GetProtocolName();
/* Modes used by default by our clients */
Anope::string DefaultPseudoclientModes;
- /* Can we force change a users's nick */
+ /* Can we force change a users's nick? */
bool CanSVSNick;
+ /* Can we force join or part users? */
+ bool CanSVSJoin;
/* Can we set vhosts/vidents on users? */
bool CanSetVHost, CanSetVIdent;
/* Can we ban specific gecos from being used? */
@@ -151,11 +153,19 @@ class CoreExport IRCDProto : public Service
/** Force joins a user that isn't ours to a channel.
* @param bi The source of the message
- * @param nick The user to join
+ * @param u The user to join
* @param chan The channel to join the user to
* @param param Channel key?
*/
- virtual void SendSVSJoin(const BotInfo *bi, const Anope::string &nick, const Anope::string &chan, const Anope::string &param) { }
+ virtual void SendSVSJoin(const BotInfo *bi, const User *u, const Anope::string &chan, const Anope::string &param) { }
+
+ /** Force parts a user that isn't ours from a channel.
+ * @param bi The source of the message
+ * @param u The user to part
+ * @param chan The channel to part the user from
+ * @param param part reason, some IRCds don't support this
+ */
+ virtual void SendSVSPart(const BotInfo *bi, const User *u, const Anope::string &chan, const Anope::string &param) { }
virtual void SendInvite(const BotInfo *bi, const Channel *c, const User *u);
virtual void SendGlobops(const BotInfo *source, const char *fmt, ...);