* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
* USA
*
- * $Id: m_rehash.c 932 2006-03-05 03:39:14Z nenolod $
+ * $Id: m_rehash.c 3161 2007-01-25 07:23:01Z nenolod $
*/
#include "stdinc.h"
};
mapi_clist_av1 rehash_clist[] = { &rehash_msgtab, NULL };
-DECLARE_MODULE_AV1(rehash, NULL, NULL, rehash_clist, NULL, NULL, "$Revision: 932 $");
+DECLARE_MODULE_AV1(rehash, NULL, NULL, rehash_clist, NULL, NULL, "$Revision: 3161 $");
struct hash_commands
{
sendto_realops_snomask(SNO_GENERAL, L_ALL,
"%s is forcing re-reading of HELP files",
get_oper_name(source_p));
- clear_help_hash();
load_help();
}
strlcat(cmdbuf, " ", sizeof(cmdbuf));
strlcat(cmdbuf, rehash_commands[x].cmd, sizeof(cmdbuf));
}
- sendto_one(source_p, ":%s NOTICE %s :rehash one of:%s", me.name, source_p->name,
- cmdbuf);
+ sendto_one_notice(source_p, ":rehash one of:%s", cmdbuf);
}
else
{
return 0;
if (!find_shared_conf(source_p->username, source_p->host,
- source_p->user->server, SHARED_REHASH))
+ source_p->servptr->name, SHARED_REHASH))
return 0;
do_rehash(source_p, parc > 1 ? parv[1] : NULL);