]> jfr.im git - irc/evilnet/x3.git/blobdiff - src/modcmd.h
quick fix for "Unable to find user SOME-SERVER whose mark is changing." errors, bette...
[irc/evilnet/x3.git] / src / modcmd.h
index c9dbee963821776a7aecdcb6b481752d0835782d..51b464b86df1ac0f46f65209a9d162d161a2f7e6 100644 (file)
@@ -1,9 +1,9 @@
 /* modcmd.h - Generalized module command support
  * Copyright 2002-2004 srvx Development Team
  *
- * This file is part of srvx.
+ * This file is part of x3.
  *
- * srvx is free software; you can redistribute it and/or modify
+ * x3 is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
  * the Free Software Foundation; either version 2 of the License, or
  * (at your option) any later version.
@@ -162,11 +162,14 @@ struct service *service_register(struct userNode *bot);
 struct service *service_find(const char *name);
 /* Bind one command to a service. */
 struct svccmd *service_bind_modcmd(struct service *service, struct modcmd *cmd, const char *name);
+struct svccmd *svccmd_resolve_name(struct svccmd *origin, const char *name);
 
 /* Send help for a command to a user. */
-int svccmd_send_help(struct userNode *user, struct userNode *bot, struct svccmd *cmd);
+int svccmd_send_help(struct userNode *user, struct service *service, const char *topic);
 /* .. and if somebody doesn't have a modcmd handy .. */
 int svccmd_send_help_2(struct userNode *user, struct service *service, const char *topic);
+/* Send brief help for a command to a user. */
+int svccmd_send_help_brief(struct userNode *user, struct userNode *bot, struct svccmd *cmd);
 /* Check whether a user may invoke a command or not.  If they can,
  * return non-zero.  If they cannot (and noisy is non-zero), tell them
  * why not and return 0.