* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
* USA
*
- * $Id: m_help.c 254 2005-09-21 23:35:12Z nenolod $
*/
#include "stdinc.h"
/*
* m_help - HELP message handler
- * parv[0] = sender prefix
*/
static int
m_help(struct Client *client_p, struct Client *source_p, int parc, const char *parv[])
/*
* mo_help - HELP message handler
- * parv[0] = sender prefix
*/
static int
mo_help(struct Client *client_p, struct Client *source_p, int parc, const char *parv[])
/*
* mo_uhelp - HELP message handler
* This is used so that opers can view the user help file without deopering
- * parv[0] = sender prefix
*/
static int
mo_uhelp(struct Client *client_p, struct Client *source_p, int parc, const char *parv[])
rb_dlink_node *fptr;
if(EmptyString(topic))
+ {
topic = ntopic;
+ if(!EmptyString(ServerInfo.helpchan))
+ sendto_one(source_p, ":%s 525 %s :Official Help Channel: %s",
+ me.name, source_p->name, ServerInfo.helpchan);
+ if(!EmptyString(ServerInfo.helpurl))
+ sendto_one(source_p, ":%s 526 %s :Official Help URL: %s",
+ me.name, source_p->name, ServerInfo.helpurl);
+ }
hptr = irc_dictionary_retrieve(flags & HELP_OPER ? help_dict_oper : help_dict_user, topic);