From 51909edc767966cd677cb65a8c8ca978a97ec655 Mon Sep 17 00:00:00 2001
From: Přemysl Janouch
Date: Sun, 13 Jul 2014 05:38:05 +0200
Subject: Apparently it's the "realname"
---
src/zyklonb.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
(limited to 'src/zyklonb.c')
diff --git a/src/zyklonb.c b/src/zyklonb.c
index 13e7f3b..a57b8c4 100644
--- a/src/zyklonb.c
+++ b/src/zyklonb.c
@@ -29,7 +29,7 @@ static struct config_item g_config_table[] =
{
{ "nickname", "ZyklonB", "IRC nickname" },
{ "username", "bot", "IRC user name" },
- { "fullname", "ZyklonB IRC bot", "IRC full name/e-mail" },
+ { "realname", "ZyklonB IRC bot", "IRC real name/e-mail" },
{ "irc_host", NULL, "Address of the IRC server" },
{ "irc_port", "6667", "Port of the IRC server" },
@@ -1539,11 +1539,11 @@ irc_connect (struct bot_context *ctx, struct error **e)
const char *nickname = str_map_find (&ctx->config, "nickname");
const char *username = str_map_find (&ctx->config, "username");
- const char *fullname = str_map_find (&ctx->config, "fullname");
+ const char *realname = str_map_find (&ctx->config, "realname");
// We have a default value for these
hard_assert (irc_port && ssl_use_str);
- hard_assert (nickname && username && fullname);
+ hard_assert (nickname && username && realname);
// TODO: again, get rid of `struct error' in here. The question is: how
// do we tell our caller that he should not try to reconnect?
@@ -1576,7 +1576,7 @@ irc_connect (struct bot_context *ctx, struct error **e)
// TODO: probably check for errors from these calls as well
irc_send (ctx, "NICK %s", nickname);
- irc_send (ctx, "USER %s 8 * :%s", username, fullname);
+ irc_send (ctx, "USER %s 8 * :%s", username, realname);
return true;
}
--
cgit v1.2.3-70-g09d2