/[cvs]/eggdrop1.9/src/core_party.c
ViewVC logotype

Annotation of /eggdrop1.9/src/core_party.c

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.2 - (hide annotations) (download) (as text)
Tue Feb 11 02:32:05 2003 UTC (16 years, 2 months ago) by stdarg
Branch: MAIN
Changes since 1.1: +13 -0 lines
File MIME type: text/x-chdr
* Some initial config code to play around with.

1 stdarg 1.1 #include <eggdrop/eggdrop.h>
2    
3     static int party_quit(int pid, const char *nick, user_t *u, const char *cmd, const char *text)
4     {
5     if (!strlen(text)) text = NULL;
6     partyline_disconnect(pid, text);
7     return(0);
8     }
9    
10     static int party_msg(int pid, const char *nick, user_t *u, const char *cmd, const char *text)
11     {
12     return(0);
13     }
14    
15 stdarg 1.2 static int party_set(int pid, const char *nick, user_t *u, const char *cmd, const char *text)
16     {
17     return(0);
18     }
19    
20     static int party_save(int pid, const char *nick, user_t *u, const char *cmd, const char *text)
21     {
22     core_config_save();
23     return(1);
24     }
25    
26 stdarg 1.1 static bind_list_t core_party_binds[] = {
27     {"quit", party_quit},
28     {"msg", party_msg},
29 stdarg 1.2 {"set", party_set},
30     {"save", party_save},
31 stdarg 1.1 {0}
32     };
33    
34     void core_party_init()
35     {
36     bind_add_list("party", core_party_binds);
37     }

webmaster@eggheads.org
ViewVC Help
Powered by ViewVC 1.1.23