Apparently it's the "realname"

This commit is contained in:
Přemysl Eric Janouch 2014-07-13 05:38:05 +02:00
parent ab651284a2
commit 51909edc76
2 changed files with 6 additions and 6 deletions

View File

@ -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);

View File

@ -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;
}