X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=include%2Fmodules.h;h=16495dad6f992b565da24e895e0f0d0f63704cfd;hb=38ca8be9a3881a3cb3cf6864e67b779ffbab6874;hp=793ccdc98fc54475792dc081b054ecfd68f0d1b8;hpb=52214a3195d062bc45522e7da58bbe7611d040f6;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/include/modules.h b/include/modules.h index 793ccdc98..16495dad6 100644 --- a/include/modules.h +++ b/include/modules.h @@ -75,7 +75,7 @@ enum MessageType { * ipv4 servers, so this value will be ten times as * high on ipv6 servers. */ -#define NATIVE_API_VERSION 11017 +#define NATIVE_API_VERSION 11018 #ifdef IPV6 #define API_VERSION (NATIVE_API_VERSION * 10) #else @@ -471,9 +471,10 @@ class Module : public Extensible * This event is only called when the user is fully registered when they quit. To catch * raw disconnections, use the OnUserDisconnect method. * @param user The user who is quitting - * @param message The user's quit message + * @param message The user's quit message (as seen by non-opers) + * @param oper_message The user's quit message (as seen by opers) */ - virtual void OnUserQuit(userrec* user, const std::string &message); + virtual void OnUserQuit(userrec* user, const std::string &message, const std::string &oper_message); /** Called whenever a user's socket is closed. * The details of the exiting user are available to you in the parameter userrec *user @@ -1351,6 +1352,13 @@ class Module : public Extensible */ virtual void OnGarbageCollect(); + /** Called whenever a user's write buffer has been completely sent. + * This is called when the user's write buffer is completely empty, and + * there are no more pending bytes to be written and no pending write events + * in the socket engine's queue. This may be used to refill the buffer with + * data which is being spooled in a controlled manner, e.g. LIST lines. + * @param user The user who's buffer is now empty. + */ virtual void OnBufferFlushed(userrec* user); };