#include "inspircd.h"
#include "modules.h"
+#include <stdarg.h>
/** If you make a change which breaks the protocol, increment this.
* If you completely change the protocol, completely change the number.
* Failure to document your protocol changes will result in a painfully
* painful death by pain. You have been warned.
*/
-const long ProtocolVersion = 1105;
+const long ProtocolVersion = 1200;
/** Forward declarations
*/
/** Handle SQUIT
*/
- int HandleSquit(const char** parameters, int pcnt, userrec* user, bool remote=false);
+ int HandleSquit(const char** parameters, int pcnt, userrec* user);
/** Handle TIME
*/
*/
void BroadcastTimeSync();
+ /** Attempt to send a message to a user
+ */
+ void RemoteMessage(userrec* user, const char* format, ...);
+
/** Returns oper-specific MAP information
*/
const std::string MapOperInfo(TreeServer* Current);
virtual void OnUserQuit(userrec* user, const std::string &reason, const std::string &oper_message);
virtual void OnUserPostNick(userrec* user, const std::string &oldnick);
virtual void OnUserKick(userrec* source, userrec* user, chanrec* chan, const std::string &reason, bool &silent);
- virtual void OnRemoteKill(userrec* source, userrec* dest, const std::string &reason);
+ virtual void OnRemoteKill(userrec* source, userrec* dest, const std::string &reason, const std::string &operreason);
virtual void OnRehash(userrec* user, const std::string ¶meter);
virtual void OnOper(userrec* user, const std::string &opertype);
void OnLine(userrec* source, const std::string &host, bool adding, char linetype, long duration, const std::string &reason);