aboutsummaryrefslogtreecommitdiffstats
path: root/root_commands.c
diff options
context:
space:
mode:
Diffstat (limited to 'root_commands.c')
-rw-r--r--root_commands.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/root_commands.c b/root_commands.c
index 7e1dc2a7..b5d0aef1 100644
--- a/root_commands.c
+++ b/root_commands.c
@@ -162,6 +162,12 @@ static void cmd_identify(irc_t *irc, char **cmd)
irc->status |= USTATUS_IDENTIFIED;
irc_umode_set(irc, "+R", 1);
+ if (irc->caps & CAP_SASL) {
+ irc_user_t *iu = irc->user;
+ irc_send_num(irc, 900, "%s!%s@%s %s :You are now logged in as %s",
+ iu->nick, iu->user, iu->host, iu->nick, iu->nick);
+ }
+
bitlbee_whatsnew(irc);
/* The following code is a bit hairy now. With takeover
@@ -238,6 +244,12 @@ static void cmd_register(irc_t *irc, char **cmd)
irc->status |= USTATUS_IDENTIFIED;
irc_umode_set(irc, "+R", 1);
+ if (irc->caps & CAP_SASL) {
+ irc_user_t *iu = irc->user;
+ irc_send_num(irc, 900, "%s!%s@%s %s :You are now logged in as %s",
+ iu->nick, iu->user, iu->host, iu->nick, iu->nick);
+ }
+
/* Set this var now, or anyone who logs in to his/her
newly created account for the first time gets the
whatsnew story. */