X-Git-Url: https://jfr.im/git/irc/rqf/shadowircd.git/blobdiff_plain/ac408af6cba5a230c66186d4389e60766c3a74a4..55bb399f79289b68e9d25db15c60463502d4c2dc:/modules/m_help.c diff --git a/modules/m_help.c b/modules/m_help.c index f1f1d2e..ab94ed0 100644 --- a/modules/m_help.c +++ b/modules/m_help.c @@ -97,7 +97,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);