summary refs log tree commit diff stats
path: root/plugins/perl/perl-512.vcxproj
diff options
context:
space:
mode:
authorBerke Viktor <bviktor@hexchat.org>2012-10-30 06:56:25 +0100
committerBerke Viktor <bviktor@hexchat.org>2012-10-30 06:56:25 +0100
commitad16a2bfee7e51e8acfbc6acd7cf22e438ec60d2 (patch)
tree05fbfae0392b9c7156820b7f5f326faf87b451f3 /plugins/perl/perl-512.vcxproj
parent56973ae365d5f7d9348996f27080d5e9d376caa9 (diff)
Proof-of-concept compat mode for XChat
Diffstat (limited to 'plugins/perl/perl-512.vcxproj')
0 files changed, 0 insertions, 0 deletions
v>






                                                                            
#include <time.h>

#ifndef XCHAT_USERLIST_H
#define XCHAT_USERLIST_H

struct User
{
	char nick[NICKLEN];
	char *hostname;
	char *realname;
	char *servername;
	time_t lasttalk;
	unsigned int access;	/* axs bit field */
	char prefix[2]; /* @ + % */
	unsigned int op:1;
	unsigned int hop:1;
	unsigned int voice:1;
	unsigned int me:1;
	unsigned int away:1;
	unsigned int selected:1;
};

#define USERACCESS_SIZE 12

int userlist_add_hostname (session *sess, char *nick,
									char *hostname, char *realname,
									char *servername, unsigned int away);
void userlist_set_away (session *sess, char *nick, unsigned int away);
struct User *userlist_find (session *sess, char *name);
struct User *userlist_find_global (server *serv, char *name);
void userlist_clear (session *sess);
void userlist_free (session *sess);
void userlist_add (session *sess, char *name, char *hostname);
int userlist_remove (session *sess, char *name);
void userlist_remove_user (session *sess, struct User *user);
int userlist_change (session *sess, char *oldname, char *newname);
void userlist_update_mode (session *sess, char *name, char mode, char sign);
GSList *userlist_flat_list (session *sess);
GList *userlist_double_list (session *sess);
void userlist_rehash (session *sess);

#endif