Mercurial > pidgin.yaz
comparison plugins/irc.c @ 1678:1573a65fd0cd
[gaim-migrate @ 1688]
Add and Remove buttons work in IRC...
committer: Tailor Script <tailor@pidgin.im>
author | Rob Flynn <gaim@robflynn.com> |
---|---|
date | Mon, 02 Apr 2001 07:15:06 +0000 |
parents | a3d857c8984e |
children | 34369ed4e212 |
comparison
equal
deleted
inserted
replaced
1677:27e5acfe2ed5 | 1678:1573a65fd0cd |
---|---|
1277 g_snprintf(buf, BUF_LEN, "AWAY\n"); | 1277 g_snprintf(buf, BUF_LEN, "AWAY\n"); |
1278 | 1278 |
1279 write(idata->fd, buf, strlen(buf)); | 1279 write(idata->fd, buf, strlen(buf)); |
1280 } | 1280 } |
1281 | 1281 |
1282 static void irc_fake_buddy(struct gaim_connection *gc, char *who) | |
1283 { | |
1284 /* Heh, there is no buddy list. We fake it. | |
1285 * I just need this here so the add and remove buttons will | |
1286 * show up */ | |
1287 } | |
1288 | |
1289 | |
1290 | |
1282 static struct prpl *my_protocol = NULL; | 1291 static struct prpl *my_protocol = NULL; |
1283 | 1292 |
1284 static void irc_init(struct prpl *ret) | 1293 static void irc_init(struct prpl *ret) |
1285 { | 1294 { |
1286 ret->protocol = PROTO_IRC; | 1295 ret->protocol = PROTO_IRC; |
1294 ret->join_chat = irc_join_chat; | 1303 ret->join_chat = irc_join_chat; |
1295 ret->chat_leave = irc_chat_leave; | 1304 ret->chat_leave = irc_chat_leave; |
1296 ret->chat_send = irc_chat_send; | 1305 ret->chat_send = irc_chat_send; |
1297 ret->get_info = irc_get_info; | 1306 ret->get_info = irc_get_info; |
1298 ret->set_away = irc_set_away; | 1307 ret->set_away = irc_set_away; |
1308 ret->add_buddy = irc_fake_buddy; | |
1309 ret->remove_buddy = irc_fake_buddy; | |
1299 | 1310 |
1300 my_protocol = ret; | 1311 my_protocol = ret; |
1301 } | 1312 } |
1302 | 1313 |
1303 char *gaim_plugin_init(GModule * handle) | 1314 char *gaim_plugin_init(GModule * handle) |