]> jfr.im git - irc/rqf/shadowircd.git/blobdiff - modules/m_help.c
Fix a quick compile warning.
[irc/rqf/shadowircd.git] / modules / m_help.c
index f1f1d2eaeb66fb792e6733bee949c03ab1adf569..109e599a0e91636350f4d4f4f0886431f8441905 100644 (file)
@@ -21,7 +21,6 @@
  *  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"
@@ -97,7 +96,15 @@ dohelp(struct Client *source_p, int flags, const char *topic)
        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);