Fix several bugs; make off-channel a per-channel option
[srvx.git] / src / chanserv.h
index 5a506d328215033253145ab4ec4271f70164c0dd..bd437a8ce22de492a500c2b9a96a074121e23e26 100644 (file)
@@ -1,11 +1,12 @@
 /* chanserv.h - Channel service bot
  * Copyright 2000-2004 srvx Development Team
  *
- * This program is free software; you can redistribute it and/or modify
+ * This file is part of srvx.
+ *
+ * srvx 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.  Important limitations are
- * listed in the COPYING file that accompanies this software.
+ * (at your option) any later version.
  *
  * This program is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -13,7 +14,8 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with this program; if not, email srvx-maintainers@srvx.net.
+ * along with srvx; if not, write to the Free Software Foundation,
+ * Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA.
  */
 
 #ifndef _chanserv_h
@@ -62,12 +64,14 @@ enum charOption {
 #define CHANNEL_DYNAMIC_LIMIT  0x00000020 /* (1 << 5) */
 #define CHANNEL_TOPIC_SNARF    0x00000040 /* (1 << 6) - DEPRECATED */
 #define CHANNEL_PEON_INVITE     0x00000080 /* (1 << 7) - DEPRECATED */
+#define CHANNEL_OFFCHANNEL      0x00000100 /* (1 << 8) */
 /* Flags with values over 0x20000000 or (1 << 29) will not work
  * because chanData.flags is a 30-bit field.
  */
 
 #define IsProtected(x)         ((x)->flags & CHANNEL_NODELETE)
 #define IsSuspended(x)         ((x)->flags & CHANNEL_SUSPENDED)
+#define IsOffChannel(x)         ((x)->flags & CHANNEL_OFFCHANNEL)
 
 struct chanData
 {