summaryrefslogtreecommitdiff
path: root/docs/man/man3/Module.3
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-04-16 18:58:08 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-04-16 18:58:08 +0000
commit668df37516e3ee3555aa7085f10d54bda3b4e426 (patch)
tree4fda156c1517493d0ba165ef516cb0937d2a1f88 /docs/man/man3/Module.3
parent99d1c8f0ab4a213a5087b6103ca07a8cb355c2c2 (diff)
Added:
OnMeshToken MeshSendAll(std::string text); MeshSendCommon(userrec* user, std::string text); MeshSendAllAlive(std::string text); MeshSendUnicast(std::string destination, std::string text); MeshSendAllExcept(std::string target, std::string text); MeshCheckChan(chanrec *c,std::string servername); MeshCheckCommon(userrec* u,std::string servername); git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1112 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'docs/man/man3/Module.3')
-rw-r--r--docs/man/man3/Module.311
1 files changed, 11 insertions, 0 deletions
diff --git a/docs/man/man3/Module.3 b/docs/man/man3/Module.3
index 515831256..5a2bb7733 100644
--- a/docs/man/man3/Module.3
+++ b/docs/man/man3/Module.3
@@ -187,6 +187,10 @@ Inherits \fBclassbase\fP.
.RI "virtual int \fBOnLocalTopicChange\fP (\fBuserrec\fP *user, \fBchanrec\fP *chan, std::string topic)"
.br
.RI "\fICalled whenever a topic is changed by a local user. \fP"
+.ti -1c
+.RI "virtual int \fBOnMeshToken\fP (char token, \fBstring_list\fP params, \fBserverrec\fP *source, \fBserverrec\fP *reply, std::string tcp_host, std::string ipaddr, int port)"
+.br
+.RI "\fICalled whenever an unknown token is received in a server to server link. \fP"
.in -1c
.SH "Detailed Description"
.PP
@@ -364,6 +368,13 @@ Called whenever a topic is changed by a local user. Return 1 to deny the topic c
.nf
348 { return 0; };
.fi
+.SS "int Module::OnMeshToken (char token, \fBstring_list\fP params, \fBserverrec\fP * source, \fBserverrec\fP * reply, std::string tcp_host, std::string ipaddr, int port)\fC [virtual]\fP"
+.PP
+Called whenever an unknown token is received in a server to server link. The token value is the unknown token -- please check that no other modules are using the token that you use. Returning 1 supresses the 'unknown token type' error which is usually sent to all opers with +s. The params list is a list of parameters, and if any parameters start with a colon (:) it is treated as the whole of the last parameter, identical to how RFC messages are handled. source is the sender of the message, and reply is what should be replied to for a unicast message. Note that there are not many messages in the mesh protocol which require unicast messaging. tcp_host is the server name as a string, ipaddr is its ip address in dotted decimal notation and port is the port number it is using.Definition at line 349 of file modules.cpp.
+.PP
+.nf
+349 { return 0; };
+.fi
.SS "void Module::OnOper (\fBuserrec\fP * user)\fC [virtual]\fP"
.PP
Called whenever a user opers locally. The userrec will contain the oper mode 'o' as this function is called after any modifications are made to the user's structure by the core.Definition at line 319 of file modules.cpp.