comparison libpurple/protocols/irc/parse.c @ 31994:cf796628b2c0

Convert irc prpl to use accessor functions purple_connection_get_protocol_data() and purple_connection_set_protocol_data().
author andrew.victor@mxit.com
date Tue, 30 Aug 2011 18:34:11 +0000
parents a5b556ac1de5
children 44fc11beefab
comparison
equal deleted inserted replaced
31993:fc82769e0f86 31994:cf796628b2c0
173 173
174 gc = purple_conversation_get_gc(conv); 174 gc = purple_conversation_get_gc(conv);
175 if (!gc) 175 if (!gc)
176 return PURPLE_CMD_RET_FAILED; 176 return PURPLE_CMD_RET_FAILED;
177 177
178 irc = gc->proto_data; 178 irc = purple_connection_get_protocol_data(gc);
179 179
180 if ((cmdent = g_hash_table_lookup(irc->cmds, cmd)) == NULL) 180 if ((cmdent = g_hash_table_lookup(irc->cmds, cmd)) == NULL)
181 return PURPLE_CMD_RET_FAILED; 181 return PURPLE_CMD_RET_FAILED;
182 182
183 (cmdent->cb)(irc, cmd, purple_conversation_get_name(conv), (const char **)args); 183 (cmdent->cb)(irc, cmd, purple_conversation_get_name(conv), (const char **)args);