#ifndef XCHAT_C_H
#define XCHAT_C_H

extern struct xchatprefs prefs;

extern int auto_connect;
extern int skip_plugins;
extern int xchat_is_quitting;
extern char *connect_url;

extern session *current_sess;
extern session *current_tab;

extern GSList *popup_list;
extern GSList *button_list;
extern GSList *dlgbutton_list;
extern GSList *command_list;
extern GSList *ctcp_list;
extern GSList *replace_list;
extern GSList *sess_list;
extern GSList *serv_list;
extern GSList *dcc_list;
extern GSList *ignore_list;
extern GSList *usermenu_list;
extern GSList *urlhandler_list;
extern GSList *tabmenu_list;

session * find_channel (server *serv, char *chan);
session * find_dialog (server *serv, char *nick);
session * new_ircwindow (server *serv, char *name, int type, int focus);
struct away_msg *find_away_message (struct server *serv, char *nick);
void save_away_message (server *serv, char *nick, char *msg);
int is_server (server * serv);
int is_session (session * sess);
void lag_check (void);
void kill_session_callback (session * killsess);
void xchat_exit (void);
void xchat_exec (char *cmd);

#endif
