summaryrefslogtreecommitdiff
path: root/src/irc/bot/bot-events.c
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2001-12-10 23:32:46 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2001-12-10 23:32:46 +0000
commit020861c698967b156c52473a91b2f61d2e965ee1 (patch)
tree6d91a40a66b41be6a9a4e6bcf8fb2df6fe4f94dd /src/irc/bot/bot-events.c
parent3b8622f1aaa83f082286af6e4efbd648042fcfcb (diff)
downloadirssi-020861c698967b156c52473a91b2f61d2e965ee1.zip
Netsplit saved the NICK_REC, but didn't save the dynamically allocated strings
which were part of it. Removed it now and replaced it with saving only op/halfop/voice status. Might have caused some crashes? (hopefully did :) git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2234 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/irc/bot/bot-events.c')
-rw-r--r--src/irc/bot/bot-events.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/irc/bot/bot-events.c b/src/irc/bot/bot-events.c
index f00fc5f8..a03f2f21 100644
--- a/src/irc/bot/bot-events.c
+++ b/src/irc/bot/bot-events.c
@@ -89,7 +89,8 @@ static void event_massjoin(IRC_CHANNEL_REC *channel, GSList *users)
static void parse_channel_mode(IRC_CHANNEL_REC *channel, const char *mode,
const char *nick, const char *address)
{
- NICK_REC *nickrec, *splitnick;
+ NETSPLIT_CHAN_REC *splitnick;
+ NICK_REC *nickrec;
USER_REC *user;
GString *str;
char *ptr, *curmode, type, *dup, *modestr;