summaryrefslogtreecommitdiff
path: root/src/zyklonb.c
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2014-07-13 05:38:05 +0200
committerPřemysl Janouch <p.janouch@gmail.com>2014-07-13 05:38:05 +0200
commit51909edc767966cd677cb65a8c8ca978a97ec655 (patch)
tree8890d879680cca22e31bd48bd8806efc2cb4a8b2 /src/zyklonb.c
parentab651284a26c1a5dd30c85cf792399df5ccd7ac2 (diff)
downloadxK-51909edc767966cd677cb65a8c8ca978a97ec655.tar.gz
xK-51909edc767966cd677cb65a8c8ca978a97ec655.tar.xz
xK-51909edc767966cd677cb65a8c8ca978a97ec655.zip
Apparently it's the "realname"
Diffstat (limited to 'src/zyklonb.c')
-rw-r--r--src/zyklonb.c8
1 files changed, 4 insertions, 4 deletions
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;
}