diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2004-04-02 15:28:11 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2004-04-02 15:28:11 +0000 |
commit | e73ea26f832a8e3b51a9c06b362deeec7cfa3c20 (patch) | |
tree | dbb25f7ac5ad479cab9439f17fad76784cc9ab8e | |
parent | 1ea860b5708d065f9ed51234fc031969215fd806 (diff) |
Improved comments
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@357 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r-- | include/modules.h | 6 | ||||
-rw-r--r-- | src/modules/m_testcommand.cpp | 3 |
2 files changed, 8 insertions, 1 deletions
diff --git a/include/modules.h b/include/modules.h index 82f6e6466..e9f750693 100644 --- a/include/modules.h +++ b/include/modules.h @@ -298,10 +298,14 @@ class Server : public classbase * * For example: * - * char modes[3][MAXBUF]; + * char *modes[3]; + * * modes[0] = ChannelName; + * * modes[1] = "+o"; + * * modes[2] = user->nick; + * * Srv->SendMode(modes,3,user); * * The modes will originate from the server where the command was issued, however responses (e.g. numerics) diff --git a/src/modules/m_testcommand.cpp b/src/modules/m_testcommand.cpp index f3dcaec2d..ad7afbc97 100644 --- a/src/modules/m_testcommand.cpp +++ b/src/modules/m_testcommand.cpp @@ -27,6 +27,9 @@ void handle_woot(char **parameters, int pcnt, userrec *user) // Here is a sample of how to send servermodes. Note that unless remote // servers in your net are u:lined, they may reverse this, but its a // quick and effective modehack. + + // NOTE: DO NOT CODE LIKE THIS!!! This has no checks and can send + // invalid or plain confusing mode changes, code some checking! char* modes[3]; modes[0] = "#chatspike"; modes[1] = "+o"; |