Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • root_commands.c

    ra0bd4c2 r449a51d  
    143143        storage_status_t status = storage_load( irc, cmd[1] );
    144144        char *account_on[] = { "account", "on", NULL };
     145       
     146        if( strchr( irc->umode, 'R' ) != NULL )
     147        {
     148                irc_usermsg( irc, "You're already logged in." );
     149                return;
     150        }
    145151       
    146152        switch (status) {
     
    908914                online = 1;
    909915        else
    910                 online =  away = 1;
     916                online = away = 1;
    911917       
    912918        if( strchr( irc->umode, 'b' ) != NULL )
     
    921927                if( online == 1 )
    922928                {
     929                        char st[256] = "Online";
     930                       
     931                        if( u->status_msg )
     932                                g_snprintf( st, sizeof( st ) - 1, "Online (%s)", u->status_msg );
     933                       
    923934                        g_snprintf( s, sizeof( s ) - 1, "%s@%s %s(%s)", u->user, u->host, u->ic->acc->prpl->name, u->ic->acc->user );
    924                         irc_usermsg( irc, format, u->nick, s, "Online" );
     935                        irc_usermsg( irc, format, u->nick, s, st );
    925936                }
    926937               
Note: See TracChangeset for help on using the changeset viewer.