Mercurial > ~mikael > mcabber > hg
comparison mcabber/src/commands.c @ 853:bdd526ec62bc
Fix segfault when using /group with the [status] entry
This patch fixes the segfault reported by pmw in the mcabber conference room.
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Sat, 13 May 2006 22:21:20 +0200 |
parents | a9161d2dc414 |
children | e1adea19ba14 |
comparison
equal
deleted
inserted
replaced
852:a3b8956db7bc | 853:bdd526ec62bc |
---|---|
675 } | 675 } |
676 | 676 |
677 if (!current_buddy) return; | 677 if (!current_buddy) return; |
678 | 678 |
679 group = buddy_getgroup(BUDDATA(current_buddy)); | 679 group = buddy_getgroup(BUDDATA(current_buddy)); |
680 if (!group) return; | |
681 | |
680 // We'll have to redraw the chat window if we're not currently on the group | 682 // We'll have to redraw the chat window if we're not currently on the group |
681 // entry itself, because it means we'll have to leave the current buddy | 683 // entry itself, because it means we'll have to leave the current buddy |
682 // chat window. | 684 // chat window. |
683 leave_windowbuddy = (group != BUDDATA(current_buddy)); | 685 leave_windowbuddy = (group != BUDDATA(current_buddy)); |
684 | 686 |