aboutsummaryrefslogtreecommitdiffstats
path: root/root_commands.c
diff options
context:
space:
mode:
Diffstat (limited to 'root_commands.c')
-rw-r--r--root_commands.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/root_commands.c b/root_commands.c
index c79ff325..b3432b9b 100644
--- a/root_commands.c
+++ b/root_commands.c
@@ -143,6 +143,12 @@ static void cmd_identify( irc_t *irc, char **cmd )
storage_status_t status = storage_load( irc, cmd[1] );
char *account_on[] = { "account", "on", NULL };
+ if( strchr( irc->umode, 'R' ) != NULL )
+ {
+ irc_usermsg( irc, "You're already logged in." );
+ return;
+ }
+
switch (status) {
case STORAGE_INVALID_PASSWORD:
irc_usermsg( irc, "Incorrect password" );