+/* ChanUser.h - NeonServ v5.2
+ * Copyright (C) 2011 Philipp Kreil (pk910)
+ *
+ * This program 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 3 of the License, or
+ * (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
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * 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, see <http://www.gnu.org/licenses/>.
+ */
#ifndef _ChanUser_h
#define _ChanUser_h
#include "main.h"
struct ChanNode;
struct UserNode;
+struct NeonSpamNode;
struct ChanUser {
unsigned char flags;
int chageEvents;
time_t changeTime;
+ struct NeonSpamNode *spamnode;
+
struct ChanUser *next_user;
struct ChanUser *next_chan;
};
struct ChanUser* getUserChannels(struct UserNode *user, struct ChanUser *last);
void delChanUser(struct ChanUser *chanuser, int freeChanUser);
void removeChanUserFromLists(struct ChanUser *chanuser, int remove_from_userlist, int remove_from_channellist, int freeChanUser);
+void freeChanUser(struct ChanUser *chanuser);
#endif
\ No newline at end of file