diff options
author | Přemysl Janouch <p.janouch@gmail.com> | 2014-07-13 05:38:05 +0200 |
---|---|---|
committer | Přemysl Janouch <p.janouch@gmail.com> | 2014-07-13 05:38:05 +0200 |
commit | 51909edc767966cd677cb65a8c8ca978a97ec655 (patch) | |
tree | 8890d879680cca22e31bd48bd8806efc2cb4a8b2 | |
parent | ab651284a26c1a5dd30c85cf792399df5ccd7ac2 (diff) | |
download | xK-51909edc767966cd677cb65a8c8ca978a97ec655.tar.gz xK-51909edc767966cd677cb65a8c8ca978a97ec655.tar.xz xK-51909edc767966cd677cb65a8c8ca978a97ec655.zip |
Apparently it's the "realname"
-rw-r--r-- | src/kike.c | 4 | ||||
-rw-r--r-- | src/zyklonb.c | 8 |
2 files changed, 6 insertions, 6 deletions
@@ -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; } |