summaryrefslogtreecommitdiff
path: root/libpurple/protocols/silc/silc.c
diff options
context:
space:
mode:
Diffstat (limited to 'libpurple/protocols/silc/silc.c')
-rw-r--r--libpurple/protocols/silc/silc.c24
1 files changed, 15 insertions, 9 deletions
diff --git a/libpurple/protocols/silc/silc.c b/libpurple/protocols/silc/silc.c
index afab01f0c8..e8ceb3b4f4 100644
--- a/libpurple/protocols/silc/silc.c
+++ b/libpurple/protocols/silc/silc.c
@@ -472,7 +472,9 @@ static void silcpurple_got_password_cb(PurpleConnection *gc, PurpleRequestFields
if (!password || !*password)
{
- purple_notify_error(gc, NULL, _("Password is required to sign on."), NULL);
+ purple_notify_error(gc, NULL,
+ _("Password is required to sign on."), NULL,
+ purple_request_cpar_from_connection(gc));
purple_connection_set_protocol_data(gc, NULL);
silc_free(sg);
return;
@@ -1099,9 +1101,10 @@ silcpurple_view_motd(PurplePluginAction *action)
return;
if (!sg->motd) {
- purple_notify_error(
- gc, _("Message of the Day"), _("No Message of the Day available"),
- _("There is no Message of the Day associated with this connection"));
+ purple_notify_error(gc, _("Message of the Day"), _("No Message "
+ "of the Day available"), _("There is no Message of the "
+ "Day associated with this connection"),
+ purple_request_cpar_from_connection(gc));
return;
}
@@ -1151,8 +1154,9 @@ silcpurple_create_keypair_cb(PurpleConnection *gc, PurpleRequestFields *fields)
pass2 = "";
if (strcmp(pass1, pass2)) {
- purple_notify_error(
- gc, _("Create New SILC Key Pair"), _("Passphrases do not match"), NULL);
+ purple_notify_error(gc, _("Create New SILC Key Pair"),
+ _("Passphrases do not match"), NULL,
+ purple_request_cpar_from_connection(gc));
return;
}
@@ -1197,8 +1201,9 @@ silcpurple_create_keypair_cb(PurpleConnection *gc, PurpleRequestFields *fields)
if (!silc_create_key_pair(SILCPURPLE_DEF_PKCS, keylen, pkfile, prfile,
identifier, pass1, &public_key, NULL,
FALSE)) {
- purple_notify_error(
- gc, _("Create New SILC Key Pair"), _("Key Pair Generation failed"), NULL);
+ purple_notify_error(gc, _("Create New SILC Key Pair"),
+ _("Key Pair Generation failed"), NULL,
+ purple_request_cpar_from_connection(gc));
return;
}
@@ -1465,7 +1470,8 @@ silcpurple_send_im(PurpleConnection *gc, const char *who, const char *message,
if (!silc_client_command_call(client, conn, msg + 1))
purple_notify_error(gc, _("Call Command"),
_("Cannot call command"),
- _("Unknown command"));
+ _("Unknown command"),
+ purple_request_cpar_from_connection(gc));
g_free(tmp);
return 0;
}