summaryrefslogtreecommitdiff
path: root/src/fe-common/irc/fe-irc-commands.c
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2001-05-17 20:13:59 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2001-05-17 20:13:59 +0000
commitc2b2d45bd62ce410ba7ca8ac920d340b9ed1a527 (patch)
tree0d8256390680d8b7c34b9e294d9749e69db195c8 /src/fe-common/irc/fe-irc-commands.c
parentfe5c94b050650c8b8f20278ea413fb1cc8d093dc (diff)
downloadirssi-c2b2d45bd62ce410ba7ca8ac920d340b9ed1a527.zip
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
Diffstat (limited to 'src/fe-common/irc/fe-irc-commands.c')
-rw-r--r--src/fe-common/irc/fe-irc-commands.c8
1 files changed, 6 insertions, 2 deletions
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 [<nick> [<password>]] */
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();
}