comparison libpurple/protocols/irc/irc.h @ 15456:79f25bbe69bf

This makes IRC /names handling generally more robust, as well as properly dealing with the case where the user runs /quote names #chan and we don't know about it. I thought things were already handled in this fashion, but obviously they were not.
author Ethan Blanton <elb@pidgin.im>
date Sun, 28 Jan 2007 21:48:58 +0000
parents 8c81db398f56
children 32c366eeeb99
comparison
equal deleted inserted replaced
15454:c68f2808f703 15456:79f25bbe69bf
39 39
40 #define IRC_DEFAULT_QUIT "Leaving." 40 #define IRC_DEFAULT_QUIT "Leaving."
41 41
42 #define IRC_INITIAL_BUFSIZE 1024 42 #define IRC_INITIAL_BUFSIZE 1024
43 43
44 #define IRC_NAMES_FLAG "irc-namelist"
45
44 46
45 enum { IRC_USEROPT_SERVER, IRC_USEROPT_PORT, IRC_USEROPT_CHARSET }; 47 enum { IRC_USEROPT_SERVER, IRC_USEROPT_PORT, IRC_USEROPT_CHARSET };
46 enum irc_state { IRC_STATE_NEW, IRC_STATE_ESTABLISHED }; 48 enum irc_state { IRC_STATE_NEW, IRC_STATE_ESTABLISHED };
47 49
48 struct irc_conn { 50 struct irc_conn {
58 int inbuflen; 60 int inbuflen;
59 int inbufused; 61 int inbufused;
60 62
61 GString *motd; 63 GString *motd;
62 GString *names; 64 GString *names;
63 char *nameconv;
64 struct _whois { 65 struct _whois {
65 char *nick; 66 char *nick;
66 char *away; 67 char *away;
67 char *userhost; 68 char *userhost;
68 char *name; 69 char *name;