dchub-dev
[Top][All Lists]
Advanced

[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, 30 Jul 2003 17:38:27 -0400
User-agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)


Support Request #102318, was updated on Wed 07/30/2003 at 17:38
You can respond by visiting: 
http://savannah.nongnu.org/support/?func=detailsupport&support_id=102318&group_id=3963

Category: Feature Request
Status: Open
Priority: 5
Summary: dchub-api

By: pakar
Date: Wed 07/30/2003 at 17: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/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]