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

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

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


Revision 1.3 - (show annotations) (download) (as text)
Sun Jun 8 03:21:23 2003 UTC (16 years ago) by stdarg
Branch: MAIN
Changes since 1.2: +4 -3 lines
File MIME type: text/x-chdr
* Partyline updates

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

webmaster@eggheads.org
ViewVC Help
Powered by ViewVC 1.1.23