comparison src/cmds.c @ 10504:1a97d5e88d12

[gaim-migrate @ 11796] Lots of things here: - Several memory leak fixes - A few invalid memory access fixes - Fix a yahoo crash going idle when away - Fix Add user in chats to actually fill in the screenname - Add gaim_account_{get,set}_enabled to perl - Fix command priorities (fixes /me in IRC) - Fix MSN notification server transfer to be quiet about it - Fix MSN blist sync if user has insane friendly name - Make the docklet less crash-happy if it fails to embed in 3 seconds - Only probe for native plugins with the correct file extension - 1 typo fix :) ... and quite possibly something else I forgot. committer: Tailor Script <tailor@pidgin.im>
author Stu Tomlinson <stu@nosnilmot.com>
date Tue, 11 Jan 2005 17:25:06 +0000
parents d6f398e80b32
children 17142948653e
comparison
equal deleted inserted replaced
10503:776586d647e3 10504:1a97d5e88d12
42 } GaimCmd; 42 } GaimCmd;
43 43
44 44
45 static gint cmds_compare_func(const GaimCmd *a, const GaimCmd *b) 45 static gint cmds_compare_func(const GaimCmd *a, const GaimCmd *b)
46 { 46 {
47 if (a->id > b->id) 47 if (a->priority > b->priority)
48 return -1; 48 return -1;
49 else if (a->id < b->id) 49 else if (a->priority < b->priority)
50 return 1; 50 return 1;
51 else return 0; 51 else return 0;
52 } 52 }
53 53
54 GaimCmdId gaim_cmd_register(const gchar *cmd, const gchar *args, 54 GaimCmdId gaim_cmd_register(const gchar *cmd, const gchar *args,