]> jfr.im git - irc/evilnet/x3.git/blobdiff - src/chanserv.h
Changed/improved 'silent' gline support
[irc/evilnet/x3.git] / src / chanserv.h
index 932236d814d3a92c0c48971d4dd13d8ec6771fb5..6d1ce8f80b22b565729b26b185a85ec4f73fffbe 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.
@@ -54,6 +54,8 @@ enum charOption {
     chTopicRefresh,
     chCTCPReaction,
     chBanTimeout,
+    chResync,
+    chBanType,
     NUM_CHAR_OPTIONS
 };
 
@@ -101,6 +103,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];
@@ -201,6 +204,10 @@ struct do_not_register
     char   reason[1];
 };
 
+#define GetChannelUser(channel, handle) _GetChannelUser(channel, handle, 1, 0)
+struct userData *_GetChannelUser(struct chanData *channel, struct handle_info *handle, int override, int allow_suspended);
+struct banData *add_channel_ban(struct chanData *channel, const char *mask, char *owner, time_t set, time_t triggered, time_t expires, char *reason);
+
 void init_chanserv(const char *nick);
 void del_channel_user(struct userData *user, int do_gc);
 struct channelList *chanserv_support_channels(void);