| 938 |
938 |
| 939 split = purple_account_user_split_new(_("Server"), IRC_DEFAULT_SERVER, '@'); |
939 split = purple_account_user_split_new(_("Server"), IRC_DEFAULT_SERVER, '@'); |
| 940 protocol->user_splits = g_list_append(protocol->user_splits, split); |
940 protocol->user_splits = g_list_append(protocol->user_splits, split); |
| 941 |
941 |
| 942 option = purple_account_option_int_new(_("Port"), "port", IRC_DEFAULT_PORT); |
942 option = purple_account_option_int_new(_("Port"), "port", IRC_DEFAULT_PORT); |
| 943 protocol->protocol_options = g_list_append(protocol->protocol_options, option); |
943 protocol->account_options = g_list_append(protocol->account_options, option); |
| 944 |
944 |
| 945 option = purple_account_option_string_new(_("Encodings"), "encoding", IRC_DEFAULT_CHARSET); |
945 option = purple_account_option_string_new(_("Encodings"), "encoding", IRC_DEFAULT_CHARSET); |
| 946 protocol->protocol_options = g_list_append(protocol->protocol_options, option); |
946 protocol->account_options = g_list_append(protocol->account_options, option); |
| 947 |
947 |
| 948 option = purple_account_option_bool_new(_("Auto-detect incoming UTF-8"), "autodetect_utf8", IRC_DEFAULT_AUTODETECT); |
948 option = purple_account_option_bool_new(_("Auto-detect incoming UTF-8"), "autodetect_utf8", IRC_DEFAULT_AUTODETECT); |
| 949 protocol->protocol_options = g_list_append(protocol->protocol_options, option); |
949 protocol->account_options = g_list_append(protocol->account_options, option); |
| 950 |
950 |
| 951 option = purple_account_option_string_new(_("Ident name"), "username", ""); |
951 option = purple_account_option_string_new(_("Ident name"), "username", ""); |
| 952 protocol->protocol_options = g_list_append(protocol->protocol_options, option); |
952 protocol->account_options = g_list_append(protocol->account_options, option); |
| 953 |
953 |
| 954 option = purple_account_option_string_new(_("Real name"), "realname", ""); |
954 option = purple_account_option_string_new(_("Real name"), "realname", ""); |
| 955 protocol->protocol_options = g_list_append(protocol->protocol_options, option); |
955 protocol->account_options = g_list_append(protocol->account_options, option); |
| 956 |
956 |
| 957 /* |
957 /* |
| 958 option = purple_account_option_string_new(_("Quit message"), "quitmsg", IRC_DEFAULT_QUIT); |
958 option = purple_account_option_string_new(_("Quit message"), "quitmsg", IRC_DEFAULT_QUIT); |
| 959 protocol->protocol_options = g_list_append(protocol->protocol_options, option); |
959 protocol->account_options = g_list_append(protocol->account_options, option); |
| 960 */ |
960 */ |
| 961 |
961 |
| 962 option = purple_account_option_bool_new(_("Use SSL"), "ssl", FALSE); |
962 option = purple_account_option_bool_new(_("Use SSL"), "ssl", FALSE); |
| 963 protocol->protocol_options = g_list_append(protocol->protocol_options, option); |
963 protocol->account_options = g_list_append(protocol->account_options, option); |
| 964 |
964 |
| 965 #ifdef HAVE_CYRUS_SASL |
965 #ifdef HAVE_CYRUS_SASL |
| 966 option = purple_account_option_bool_new(_("Authenticate with SASL"), "sasl", FALSE); |
966 option = purple_account_option_bool_new(_("Authenticate with SASL"), "sasl", FALSE); |
| 967 protocol->protocol_options = g_list_append(protocol->protocol_options, option); |
967 protocol->account_options = g_list_append(protocol->account_options, option); |
| 968 |
968 |
| 969 option = purple_account_option_bool_new( |
969 option = purple_account_option_bool_new( |
| 970 _("Allow plaintext SASL auth over unencrypted connection"), |
970 _("Allow plaintext SASL auth over unencrypted connection"), |
| 971 "auth_plain_in_clear", FALSE); |
971 "auth_plain_in_clear", FALSE); |
| 972 protocol->protocol_options = g_list_append(protocol->protocol_options, option); |
972 protocol->account_options = g_list_append(protocol->account_options, option); |
| 973 #endif |
973 #endif |
| 974 } |
974 } |
| 975 |
975 |
| 976 static void |
976 static void |
| 977 irc_protocol_class_init(PurpleProtocolClass *klass) |
977 irc_protocol_class_init(PurpleProtocolClass *klass) |