comparison mcabber/mcabber/hooks.c @ 2164:038c4d601011

Simplify handling of command '/quit'
author franky
date Fri, 17 Oct 2014 22:31:03 +0200
parents 9e40d8f5bbe6
children ee3a40ffcd8b
comparison
equal deleted inserted replaced
2163:0ac8eea728d1 2164:038c4d601011
632 return; 632 return;
633 633
634 scr_LogPrint(LPRINT_LOGNORM, "Running hook-post-connect..."); 634 scr_LogPrint(LPRINT_LOGNORM, "Running hook-post-connect...");
635 635
636 cmdline = from_utf8(hook_command); 636 cmdline = from_utf8(hook_command);
637 if (process_command(cmdline, TRUE) == 255) 637 process_command(cmdline, TRUE);
638 mcabber_set_terminate_ui();
639 638
640 g_free(cmdline); 639 g_free(cmdline);
641 } 640 }
642 641
643 void hk_predisconnect(void) 642 void hk_predisconnect(void)
659 return; 658 return;
660 659
661 scr_LogPrint(LPRINT_LOGNORM, "Running hook-pre-disconnect..."); 660 scr_LogPrint(LPRINT_LOGNORM, "Running hook-pre-disconnect...");
662 661
663 cmdline = from_utf8(hook_command); 662 cmdline = from_utf8(hook_command);
664 if (process_command(cmdline, TRUE) == 255) 663 process_command(cmdline, TRUE);
665 mcabber_set_terminate_ui();
666 664
667 g_free(cmdline); 665 g_free(cmdline);
668 } 666 }
669 667
670 void hk_unread_list_change(guint unread_count, guint attention_count, 668 void hk_unread_list_change(guint unread_count, guint attention_count,