#include "numeric.h"
#include "send.h"
#include "s_conf.h"
-#include "s_log.h"
+#include "logger.h"
#include "parse.h"
#include "modules.h"
#include "hash.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[])
static const char ntopic[] = "index";
struct cachefile *hptr;
struct cacheline *lineptr;
- dlink_node *ptr;
- dlink_node *fptr;
+ rb_dlink_node *ptr;
+ rb_dlink_node *fptr;
if(EmptyString(topic))
topic = ntopic;
- hptr = irc_dictionary_retrieve(help_dict, topic);
+ hptr = irc_dictionary_retrieve(flags & HELP_OPER ? help_dict_oper : help_dict_user, topic);
if(hptr == NULL || !(hptr->flags & flags))
{
sendto_one(source_p, form_str(RPL_HELPSTART),
me.name, source_p->name, topic, lineptr->data);
- DLINK_FOREACH(ptr, fptr->next)
+ RB_DLINK_FOREACH(ptr, fptr->next)
{
lineptr = ptr->data;