… | |
… | |
3 | * Rights to this code are documented in doc/pod/license.pod. |
3 | * Rights to this code are documented in doc/pod/license.pod. |
4 | * |
4 | * |
5 | * Copyright © 2005-2007 Atheme Project (http://www.atheme.org) |
5 | * Copyright © 2005-2007 Atheme Project (http://www.atheme.org) |
6 | */ |
6 | */ |
7 | |
7 | |
8 | static char const rcsid[] = "$Id: template.C,v 1.5 2007/08/30 19:56:26 pippijn Exp $"; |
8 | static char const rcsid[] = "$Id: template.C,v 1.6 2007/09/05 11:23:15 pippijn Exp $"; |
9 | |
9 | |
10 | #include "atheme.h" |
10 | #include "atheme.h" |
11 | #include <account/mychan.h> |
11 | #include <account/mychan.h> |
12 | #include "template.h" |
12 | #include "template.h" |
13 | |
13 | |
… | |
… | |
42 | } |
42 | } |
43 | |
43 | |
44 | unsigned int |
44 | unsigned int |
45 | get_template_flags (mychan_t *mc, char const * const name) |
45 | get_template_flags (mychan_t *mc, char const * const name) |
46 | { |
46 | { |
47 | metadata::item *md; |
47 | metadata *md; |
48 | char *d; |
48 | char *d; |
49 | |
49 | |
50 | if (mc != NULL) |
50 | if (mc != NULL) |
51 | { |
51 | { |
52 | md = mc->find_metadata ("private:templates"); |
52 | md = mc->find_metadata ("private:templates"); |