libpurple/protocols/irc/irc.c

changeset 34312
4461d5c1e61c
parent 33600
7f43656ee445
child 34321
f60fcab02bd4
child 34894
df5ed3731148
equal deleted inserted replaced
34311:2eb147600041 34312:4461d5c1e61c
907 static void irc_keepalive(PurpleConnection *gc) 907 static void irc_keepalive(PurpleConnection *gc)
908 { 908 {
909 struct irc_conn *irc = purple_connection_get_protocol_data(gc); 909 struct irc_conn *irc = purple_connection_get_protocol_data(gc);
910 if ((time(NULL) - irc->recv_time) > PING_TIMEOUT) 910 if ((time(NULL) - irc->recv_time) > PING_TIMEOUT)
911 irc_cmd_ping(irc, NULL, NULL, NULL); 911 irc_cmd_ping(irc, NULL, NULL, NULL);
912 }
913
914 static gsize
915 irc_get_max_message_size(PurpleConnection *gc)
916 {
917 /* got from pidgin-otr */
918 return 417;
912 } 919 }
913 920
914 static PurplePluginProtocolInfo prpl_info = 921 static PurplePluginProtocolInfo prpl_info =
915 { 922 {
916 sizeof(PurplePluginProtocolInfo), /* struct_size */ 923 sizeof(PurplePluginProtocolInfo), /* struct_size */
982 NULL, /* get_account_text_table */ 989 NULL, /* get_account_text_table */
983 NULL, /* initiate_media */ 990 NULL, /* initiate_media */
984 NULL, /* get_media_caps */ 991 NULL, /* get_media_caps */
985 NULL, /* get_moods */ 992 NULL, /* get_moods */
986 NULL, /* set_public_alias */ 993 NULL, /* set_public_alias */
987 NULL /* get_public_alias */ 994 NULL, /* get_public_alias */
995 irc_get_max_message_size /* get_max_message_size */
988 }; 996 };
989 997
990 static gboolean load_plugin (PurplePlugin *plugin) { 998 static gboolean load_plugin (PurplePlugin *plugin) {
991 999
992 purple_signal_register(plugin, "irc-sending-text", 1000 purple_signal_register(plugin, "irc-sending-text",

mercurial