]> jfr.im git - irc/evilnet/x3.git/blobdiff - src/chanserv.h
Added authserv advanced option also added autohide to the help file, seems someone...
[irc/evilnet/x3.git] / src / chanserv.h
index 40758a8fbcb6dde0c55f09ffae53ff84d5eb5f4c..5cbe221ee9298374583d65685cf3598ed4b5b798 100644 (file)
@@ -3,7 +3,7 @@
  *
  * This file is part of x3.
  *
- * srvx is free software; you can redistribute it and/or modify
+ * x3 is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
  * the Free Software Foundation; either version 2 of the License, or
  * (at your option) any later version.
@@ -35,9 +35,6 @@ enum UL_ALIASES {
 };
 
 enum levelOption {
-//    lvlGiveVoice,   /* Depreciated */
-//    lvlGiveHalfOps, /* Depreciated */
-//    lvlGiveOps, /* Depreciated */
     lvlEnfOps,
     lvlEnfHalfOps,
     lvlEnfModes,
@@ -51,12 +48,13 @@ enum levelOption {
 };
 
 enum charOption {
-    chVoice,
+    chAutomode,
     chProtect,
     chToys,
     chTopicRefresh,
     chCTCPReaction,
     chBanTimeout,
+    chResync,
     NUM_CHAR_OPTIONS
 };
 
@@ -104,6 +102,7 @@ struct chanData
     unsigned int        may_opchan : 1;
     unsigned int        max;
     unsigned int        last_refresh;
+    unsigned int        last_resync;
     unsigned short      banCount; /* Lamers, really */
     unsigned short      userCount;
     unsigned short      lvlOpts[NUM_LEVEL_OPTIONS];
@@ -113,6 +112,7 @@ struct chanData
     struct banData     *bans; /* Lamers, really */
     struct dict         *notes;
     struct suspended   *suspended;
+    struct giveownership *giveownership;
     struct chanData    *prev;
     struct chanData    *next;
 };
@@ -135,6 +135,7 @@ struct userData
 
     char               *info;
     time_t             seen;
+    time_t              expires;
     unsigned short      access;
     unsigned int       present : 1;
     unsigned int        flags : USER_FLAGS_SIZE;
@@ -183,6 +184,17 @@ struct suspended
     struct suspended    *previous;
 };
 
+struct giveownership
+{
+    char                 *staff_issuer;
+    char                  *old_owner;
+    char                  *target;
+    unsigned short        target_access;
+    time_t                issued;
+    char                  *reason;
+    struct giveownership  *previous;
+};
+
 struct do_not_register
 {
     char   chan_name[CHANNELLEN+1];