Open michaelortmann opened 3 weeks ago
Hi,
Thank you, this perfectly fix the /part crash. However it's seem produce a lot call to killmember(). Don't know if related
Good find. The killmember()
was already called before the regression.
So now, additionally this PR avoids calling killmember()
if we just checked that the parting entity is not ismember()
ismember()
already checks the very channel memberlist that killmember()
would search through again.
Found by: BigBadWouf Patch by: michaelortmann Fixes: #1708
One-line summary: Crashfix
gotpart()
: Ifismember()
returns0
, fallback toget_user_by_host()
Additional description (if needed):
ismember()
can returns0
while the bot has not (yet) synched the channel, like when it just joined This bug affects eggdrop version 1.10.0, older versions are not affectedTest cases demonstrating functionality (if applicable): Fixes the following crash: