diff options
| author | cyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-11-30 05:50:25 +0000 |
|---|---|---|
| committer | cyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-11-30 05:50:25 +0000 |
| commit | 7f555f08e7991c5c6d10a1f1bbeda82fb5f429f3 (patch) | |
| tree | fcbeeeedde9d46a54dadb494ce4d1863161ba0fd /src/botserv.c | |
| parent | ccb8c76295f95e0c8b6b2fd23e8007fa18cf4641 (diff) | |
Modified BotInfo to store a pointer to a command hash table (this is so modules like ss_main can store their own commands but still have them called by the core).
Updated the current sample of ss_main to utilize BotInfo instead of Service (which might be removed) as well as accept a HELP command.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1819 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/botserv.c')
| -rw-r--r-- | src/botserv.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/botserv.c b/src/botserv.c index 9eddfe685..32c56ca45 100644 --- a/src/botserv.c +++ b/src/botserv.c @@ -116,6 +116,10 @@ void botmsgs(User * u, BotInfo * bi, char *buf) } ircdproto->SendCTCP(bi, u->nick, "PING %s", s); } + else if (cmd && bi->cmdTable) + { + mod_run_cmd(bi->nick, u, bi->cmdTable, cmd); + } } /*************************************************************************/ |
