| 973 |
973 |
| 974 purple_prefs_remove("/protocols/irc/quitmsg"); |
974 purple_prefs_remove("/protocols/irc/quitmsg"); |
| 975 purple_prefs_remove("/protocols/irc"); |
975 purple_prefs_remove("/protocols/irc"); |
| 976 |
976 |
| 977 irc_register_commands(); |
977 irc_register_commands(); |
| 978 |
|
| 979 purple_signal_register(_irc_protocol, "irc-sending-text", |
|
| 980 purple_marshal_VOID__POINTER_POINTER, G_TYPE_NONE, 2, |
|
| 981 PURPLE_TYPE_CONNECTION, |
|
| 982 G_TYPE_POINTER); /* pointer to a string */ |
|
| 983 purple_signal_register(_irc_protocol, "irc-receiving-text", |
|
| 984 purple_marshal_VOID__POINTER_POINTER, G_TYPE_NONE, 2, |
|
| 985 PURPLE_TYPE_CONNECTION, |
|
| 986 G_TYPE_POINTER); /* pointer to a string */ |
|
| 987 } |
978 } |
| 988 |
979 |
| 989 static void |
980 static void |
| 990 irc_protocol_interface_init(PurpleProtocolInterface *iface) |
981 irc_protocol_interface_init(PurpleProtocolInterface *iface) |
| 991 { |
982 { |
| 1042 { |
1033 { |
| 1043 _irc_protocol = purple_protocols_add(IRC_TYPE_PROTOCOL, error); |
1034 _irc_protocol = purple_protocols_add(IRC_TYPE_PROTOCOL, error); |
| 1044 if (!_irc_protocol) |
1035 if (!_irc_protocol) |
| 1045 return FALSE; |
1036 return FALSE; |
| 1046 |
1037 |
| |
1038 purple_signal_register(_irc_protocol, "irc-sending-text", |
| |
1039 purple_marshal_VOID__POINTER_POINTER, G_TYPE_NONE, 2, |
| |
1040 PURPLE_TYPE_CONNECTION, |
| |
1041 G_TYPE_POINTER); /* pointer to a string */ |
| |
1042 purple_signal_register(_irc_protocol, "irc-receiving-text", |
| |
1043 purple_marshal_VOID__POINTER_POINTER, G_TYPE_NONE, 2, |
| |
1044 PURPLE_TYPE_CONNECTION, |
| |
1045 G_TYPE_POINTER); /* pointer to a string */ |
| |
1046 |
| 1047 return TRUE; |
1047 return TRUE; |
| 1048 } |
1048 } |
| 1049 |
1049 |
| 1050 static gboolean |
1050 static gboolean |
| 1051 plugin_unload(PurplePlugin *plugin, GError **error) |
1051 plugin_unload(PurplePlugin *plugin, GError **error) |