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/kike.c | 4 ++-- src/zyklonb.c | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/kike.c b/src/kike.c index fdb87bc..9734f2b 100644 --- a/src/kike.c +++ b/src/kike.c @@ -223,7 +223,7 @@ struct connection char *nickname; ///< IRC nickname (main identifier) char *username; ///< IRC username - char *fullname; ///< IRC fullname (e-mail) + char *realname; ///< IRC realname (e-mail) char *hostname; ///< Hostname shown to the network @@ -254,7 +254,7 @@ connection_free (struct connection *self) free (self->nickname); free (self->username); - free (self->fullname); + free (self->realname); free (self->hostname); free (self->away_message); 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