summaryrefslogtreecommitdiff
path: root/src/sessions.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sessions.c')
-rw-r--r--src/sessions.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/sessions.c b/src/sessions.c
index 192ba3ea9..1620a2e15 100644
--- a/src/sessions.c
+++ b/src/sessions.c
@@ -461,6 +461,25 @@ void save_exceptions()
#undef SAFE
/*************************************************************************/
+
+void save_rdb_exceptions()
+{
+#ifdef USE_RDB
+ int i;
+ Exception *e;
+
+ if (!rdb_open())
+ return;
+ rdb_clear_table("anope_os_exceptions");
+ for (i = 0; i < nexceptions; i++) {
+ e = &exceptions[i];
+ rdb_save_exceptions(e);
+ }
+ rdb_close();
+#endif
+}
+
+/*************************************************************************/
/************************ Exception Manipulation *************************/
/*************************************************************************/