summaryrefslogtreecommitdiff
path: root/src/irc
diff options
context:
space:
mode:
authorLemonBoy <thatlemon@gmail.com>2016-09-30 19:30:43 +0200
committerLemonBoy <thatlemon@gmail.com>2016-09-30 19:30:43 +0200
commit3667fd9fd1decef637ef28fdc8d89fe3595e009a (patch)
treec266a6f4faf9fe84bc7d8d43100b5d747ba5b9bc /src/irc
parent8d4d313cc9853a62a2901d99b7c555e5c0d730b7 (diff)
downloadirssi-3667fd9fd1decef637ef28fdc8d89fe3595e009a.zip
Make the cap_complete field unsigned.
Fixes a problem where the field would end up as a negative number when exposed to the perl scripts. And move it near the other bit-packed fields so we take advantage of the packing.
Diffstat (limited to 'src/irc')
-rw-r--r--src/irc/core/irc-servers.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/irc/core/irc-servers.h b/src/irc/core/irc-servers.h
index ecf65ac2..bb100f86 100644
--- a/src/irc/core/irc-servers.h
+++ b/src/irc/core/irc-servers.h
@@ -67,6 +67,7 @@ struct _IRC_SERVER_REC {
unsigned int nick_collision:1; /* We're just now being killed because of nick collision */
unsigned int motd_got:1; /* We've received MOTD */
unsigned int isupport_sent:1; /* Server has sent us an isupport reply */
+ unsigned int cap_complete:1; /* We've done the initial CAP negotiation */
int max_kicks_in_cmd; /* max. number of people to kick with one /KICK command */
int max_modes_in_cmd; /* max. number of mode changes in one /MODE command */
@@ -76,7 +77,6 @@ struct _IRC_SERVER_REC {
GSList *cap_supported; /* A list of caps supported by the server */
GSList *cap_active; /* A list of caps active for this session */
GSList *cap_queue; /* A list of caps to request on connection */
- int cap_complete:1; /* We've done the initial CAP negotiation */
GString *sasl_buffer; /* Buffer used to reassemble a fragmented SASL payload */
guint sasl_timeout; /* Holds the source id of the running timeout */