libpurple/protocols/irc/irc.c

branch
soc.2013.gobjectification
changeset 34894
df5ed3731148
parent 34815
7fdf8dca3bc1
parent 34312
4461d5c1e61c
child 34904
dee62fd8249d
child 36583
0582190c9382
equal deleted inserted replaced
34893:78b4b4c6e6cb 34894:df5ed3731148
911 static void irc_keepalive(PurpleConnection *gc) 911 static void irc_keepalive(PurpleConnection *gc)
912 { 912 {
913 struct irc_conn *irc = purple_connection_get_protocol_data(gc); 913 struct irc_conn *irc = purple_connection_get_protocol_data(gc);
914 if ((time(NULL) - irc->recv_time) > PING_TIMEOUT) 914 if ((time(NULL) - irc->recv_time) > PING_TIMEOUT)
915 irc_cmd_ping(irc, NULL, NULL, NULL); 915 irc_cmd_ping(irc, NULL, NULL, NULL);
916 }
917
918 static gsize
919 irc_get_max_message_size(PurpleConnection *gc)
920 {
921 /* got from pidgin-otr */
922 return 417;
916 } 923 }
917 924
918 static PurplePluginProtocolInfo prpl_info = 925 static PurplePluginProtocolInfo prpl_info =
919 { 926 {
920 sizeof(PurplePluginProtocolInfo), /* struct_size */ 927 sizeof(PurplePluginProtocolInfo), /* struct_size */
986 NULL, /* get_account_text_table */ 993 NULL, /* get_account_text_table */
987 NULL, /* initiate_media */ 994 NULL, /* initiate_media */
988 NULL, /* get_media_caps */ 995 NULL, /* get_media_caps */
989 NULL, /* get_moods */ 996 NULL, /* get_moods */
990 NULL, /* set_public_alias */ 997 NULL, /* set_public_alias */
991 NULL /* get_public_alias */ 998 NULL, /* get_public_alias */
999 irc_get_max_message_size /* get_max_message_size */
992 }; 1000 };
993 1001
994 static gboolean load_plugin (PurplePlugin *plugin) { 1002 static gboolean load_plugin (PurplePlugin *plugin) {
995 1003
996 purple_signal_register(plugin, "irc-sending-text", 1004 purple_signal_register(plugin, "irc-sending-text",

mercurial