summaryrefslogtreecommitdiff
path: root/src/helpserv.c
diff options
context:
space:
mode:
authortrystan trystan@31f1291d-b8d6-0310-a050-a5561fc1590b <trystan trystan@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2004-12-03 06:07:44 +0000
committertrystan trystan@31f1291d-b8d6-0310-a050-a5561fc1590b <trystan trystan@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2004-12-03 06:07:44 +0000
commit1aaeba38f4e5f3169ad1f17bbf28ceaae0af9f8a (patch)
tree22c3896351bc7634005a52958a5c993b1afa3c75 /src/helpserv.c
parentf18d506cad80b9ed28f02ee33f35332320f3ea04 (diff)
BUILD : 1.7.6 (469) BUGS : N/A NOTES : 1. ultimate3 setting the wrong channel mode on botserv bots 2. helpserv.c is doxygen ready, did some code clean up 3. Services Clients (+S) now override channel modes (yeah no more deopping NeoStats), this only works on ircds where there is a clear services mode (Unreal, Viagra, Ultimeate2/3) 4. send.c is doxygen ready, did some code clean up 5. commands.c id doxygen ready, did some code clean up
git-svn-id: svn://svn.anope.org/anope/trunk@469 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@323 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/helpserv.c')
-rw-r--r--src/helpserv.c40
1 files changed, 28 insertions, 12 deletions
diff --git a/src/helpserv.c b/src/helpserv.c
index 7e4e1e8a9..1ced1108f 100644
--- a/src/helpserv.c
+++ b/src/helpserv.c
@@ -16,13 +16,15 @@
#include "services.h"
#include "pseudo.h"
-#define HELP_VERSION 1
-
-void helpserv_init(void);
static int do_help(User * u);
void moduleAddHelpServCmds(void);
/*************************************************************************/
+
+/**
+ * Setup the commands for HelpServ
+ * @return void
+ */
void moduleAddHelpServCmds(void)
{
Command *c;
@@ -32,15 +34,23 @@ void moduleAddHelpServCmds(void)
/*************************************************************************/
-/*************************************************************************/
-/* HelpServ initialization. */
+/**
+ * HelpServ initialization.
+ * @return void
+ */
void helpserv_init(void)
{
moduleAddHelpServCmds();
}
/*************************************************************************/
-/* Main HelpServ routine. */
+
+/**
+ * Main HelpServ routine.
+ * @param u User Struct of the user sending the PRIVMSG
+ * @param buf Buffer containing the PRIVMSG data
+ * @return void
+ */
void helpserv(User * u, char *buf)
{
char *cmd, *s;
@@ -60,11 +70,15 @@ void helpserv(User * u, char *buf)
}
/*************************************************************************/
-/* Display the HelpServ help. */
-/* This core function has been embed in the source for a long time, but */
-/* it moved into it's own file so we now all can enjoy the joy of */
-/* modules for HelpServ. */
+/**
+ * Display the HelpServ help.
+ * This core function has been embed in the source for a long time, but
+ * it moved into it's own file so we now all can enjoy the joy of
+ * modules for HelpServ.
+ * @param u User Struct of the user looking for help
+ * @return MOD_CONT
+ */
static int do_help(User * u)
{
char *cmd = strtok(NULL, "");
@@ -72,10 +86,12 @@ static int do_help(User * u)
if (!cmd) {
notice_help(s_HelpServ, u, HELP_HELP, s_NickServ, s_ChanServ,
s_MemoServ);
- if (s_BotServ)
+ if (s_BotServ) {
notice_help(s_HelpServ, u, HELP_HELP_BOT, s_BotServ);
- if (s_HostServ)
+ }
+ if (s_HostServ) {
notice_help(s_HelpServ, u, HELP_HELP_HOST, s_HostServ);
+ }
moduleDisplayHelp(7, u);
} else {
mod_help_cmd(s_HelpServ, u, HELPSERV, cmd);