09:18 https://github.com/dequis/bitlbee/commit/5e47629ad88437fddc008027d1a1a4517997a056 09:18 check my changes to the function in bee_chat.c 09:18 not 100% on that [...] 10:16 I need to fix a message duping issue 10:16 with that patch --- Log closed Mon Dec 15 11:56:18 2014 --- Log opened Tue Dec 16 08:47:41 2014 08:47 so, that patch 08:48 I track the group chats with their groupchat pointer 08:48 is that bad? 08:48 should I do it by the title? 08:48 because 08:48 groupchats have no ->data or equivalent? 08:49 prpl->chat_join is getting called more than once for the same title 08:49 with different point values 08:49 huh 08:49 well 08:49 I same i mean 08:49 but it leads to me creating more than once grouchat 08:49 both of which print to the same channel 08:50 and no, ->data won't work 08:50 I need them stored so when I get input on a filter, I know which channels to output to 08:51 but this is what leads to the duplication bug I was telling you about 08:51 I think it has to do with my client 08:51 but bitlbee should be accounting for this 08:54 it's when my client autoconnects and auto joins 08:54 ugh 08:57 still poking around to ensure it's not just me being retarded 08:57 just wanted to know if there were any known issues of such 09:00 there might be 09:00 the first line of my prpl->chat join: 09:00 g_print("Adding groupchat: %p, %p, %p, %p, %p\n", ic, room, nick, password, sets); 09:00 Adding groupchat: 0x55555582a530, 0x55555583db70, 0x5555558127d0, (nil), 0x55555583d728 09:00 Adding groupchat: 0x55555582a530, 0x55555583db70, 0x5555558127d0, (nil), 0x55555583d728 09:00 nice debugging bro 09:00 now I will stack trace it 09:01 first line of my prpl->chat_leave 09:01 g_print("Removing groupchat: %p\n", c); 09:01 Removing groupchat: 0x55555582a000 09:01 clearly a memleak there 09:02 bro do you even valgrind 09:03 https://pastebin.osuosl.org/13926/14187314/ 09:04 ye looks familiar 09:06 I am fairly certain this issue resides outside the scope of my modifications? 09:06 yeah 09:10 my patch is pretty much good then 09:10 just going to test memory leaks 09:10 but I will fix the other issue 09:16 if I set each channel to auto_join false 09:16 that'd be a work around 09:16 indeed 09:17 <@jgeboski> channel #gmuyaks set 09:18 <@root> account = `twitter' 09:18 <@root> auto_join = `false' 09:18 well it already was 09:18 lol 09:18 that's depressing 09:20 found the bug 09:20 yeah it only seems to apply on /reconnect 09:20 https://github.com/dequis/bitlbee/blob/6340060/irc_channel.c#L434 09:20 && should be ||? 09:21 well, both are ! 09:21 yeah 09:21 it should be: !aj || ( ic->flags & IRC_CHANNEL_JOINED ) 09:21 remove the inverter on the flag check 09:21 which is what the comment right below it conforms to 09:22 i'm not sure if the comment below is written correctly 09:22 either way 09:22 there is no condition explicitly for autojoin being false 09:23 and it's suppose to cover that 09:23 and it's not 09:23 !aj || ( ic->flags & IRC_CHANNEL_JOINED ) does look better 09:24 logically 09:24 but test it a lot! 09:24 I will 09:25 but if you read it logically to the modified line, it does make sense 09:25 as it is now, it does not 09:25 making sense is overrated 09:26 also 09:26 there should probably be another patch 09:26 to guard against doubly joining 09:27 as that does lead to memory leaks 09:27 and potentially other bad things 09:28 sure 10:08 https://github.com/dequis/bitlbee/commit/ad0e032ff66e5af04891aba562e7a07c1e6b4017 10:08 still need to test 10:12 definitely resolves the issues I was having