| # | Line 34 | Line 34 | |
|---|---|---|
| 34 | #include "irc_string.h" | |
| 35 | #include "ircd_defs.h" | |
| 36 | #include "conf.h" | |
| 37 | + | #include "conf_db.h" |
| 38 | ||
| 39 | dlink_list resv_channel_list = { NULL, NULL, 0 }; | |
| 40 | ||
| # | Line 72 | Line 73 | create_channel_resv(char *name, char *re | |
| 73 | dlinkAdd(resv_p, &resv_p->node, &resv_channel_list); | |
| 74 | hash_add_resv(resv_p); | |
| 75 | ||
| 76 | + | if (!in_conf) |
| 77 | + | save_resv_database(); |
| 78 | + | |
| 79 | return conf; | |
| 80 | } | |
| 81 | ||
| # | Line 105 | Line 109 | create_nick_resv(char *name, char *reaso | |
| 109 | DupString(resv_p->reason, reason); | |
| 110 | resv_p->action = in_conf; | |
| 111 | ||
| 112 | + | if (!in_conf) |
| 113 | + | save_resv_database(); |
| 114 | + | |
| 115 | return conf; | |
| 116 | } | |
| 117 | ||
| – | Removed lines |
| + | Added lines |
| < | Changed lines (old) |
| > | Changed lines (new) |