From c2b2d45bd62ce410ba7ca8ac920d340b9ed1a527 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Thu, 17 May 2001 20:13:59 +0000 Subject: Getting rid of gettext, moved some _(..) texts to themes and left some error messages hard coded. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1503 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/fe-common/irc/fe-irc-commands.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/fe-common/irc/fe-irc-commands.c') diff --git a/src/fe-common/irc/fe-irc-commands.c b/src/fe-common/irc/fe-irc-commands.c index 49d5e917..a2e4829c 100644 --- a/src/fe-common/irc/fe-irc-commands.c +++ b/src/fe-common/irc/fe-irc-commands.c @@ -396,7 +396,7 @@ static void cmd_oper_got_pass(const char *password, OPER_PASS_REC *rec) /* SYNTAX: OPER [ []] */ static void cmd_oper(const char *data, IRC_SERVER_REC *server) { - char *nick, *password; + char *nick, *password, *format; void *free_arg; g_return_if_fail(data != NULL); @@ -414,9 +414,13 @@ static void cmd_oper(const char *data, IRC_SERVER_REC *server) rec->server = server; rec->nick = g_strdup(*nick != '\0' ? nick : server->nick); + format = format_get_text(MODULE_NAME, NULL, server, NULL, + IRCTXT_ASK_OPER_PASS); + keyboard_entry_redirect((SIGNAL_FUNC) cmd_oper_got_pass, - _("Operator password:"), + format, ENTRY_REDIRECT_FLAG_HIDDEN, rec); + g_free(format); signal_stop(); } -- cgit v1.2.3