[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Dchub-dev] [support #102318] dchub-api
From: |
nobody |
Subject: |
[Dchub-dev] [support #102318] dchub-api |
Date: |
Wed, 06 Aug 2003 05:23:14 -0400 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686) Gecko/20030428 Galeon/1.3.3 |
Support Request #102318, was updated on Wed 07/30/2003 at 23:38
You can respond by visiting:
http://savannah.nongnu.org/support/?func=detailsupport&support_id=102318&group_id=3963
Category: Feature Request
Status: Closed
Priority: 5
Summary: dchub-api
By: ericprev
Date: Wed 08/06/2003 at 11:23
Logged In: YES
user_id=15899
Browser: Mozilla/5.0 (X11; U; Linux i686) Gecko/20030428 Galeon/1.3.3
A similar code already exists with the generic decoder in
extprog_toolkit.c
Embedding such a code in dchub is far too complex because
you must process the command in each function, not globally.
And it is nearly impossible to do if you have a cluster.
That's why a bot is better for such task.
----------------------------------------------------------------------
By: pakar
Date: Wed 07/30/2003 at 23:38
Logged In: NO
Browser: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)
Would be nice to have some sort of function in the
dchub-api where you could do something like:
char cmd[4096];
memset(cmdarray, 0 , sizeof(cmdarray));
cmdarray.search = 1;
cmdarray.pm = 1;
cmdarray.globalchat = 1;
cmdarray.sr = 1;
commandconf(cmdarray);
while (quit == 0)
{
getcommand(cmd);
if (validatecmd(cmd) == 1)
{
putcommand(cmd);
}
}
The cmdarray would then just contain all types of
cmd's that the hub understands and would then
configure what messages that the plugin should recieve.
The validatecmd() would then be your own function to
check the commands in their raw format and this would
make it quite easy to write spam/advertising filters
in a easy way.
----------------------------------------------------------------------
You can respond by visiting:
http://savannah.nongnu.org/support/?func=detailsupport&support_id=102318&group_id=3963
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Dchub-dev] [support #102318] dchub-api,
nobody <=