=== modified file 'root_commands.c'
        
              
              
                
                  |  |  |  | 
              
            
                  
                          | 779 | 779 | static void cmd_blist( irc_t *irc, char **cmd ) | 
                          | 780 | 780 | { | 
                          | 781 | 781 | int online = 0, away = 0, offline = 0; | 
            
                  
                          |  | 782 | int bot = 0; | 
            
                  
                          | 782 | 783 | user_t *u; | 
                          | 783 | 784 | char s[256]; | 
                          | 784 | 785 | char *format; | 
            
              
                
                  | … | … |  | 
              
            
                  
                          | 795 | 796 | else | 
                          | 796 | 797 | online =  away = 1; | 
                          | 797 | 798 |  | 
            
                      
                        | 798 |  | if( strchr( irc->umode, 'b' ) != NULL )  | 
                      
                        |  | 799 | if( strchr( irc->umode, 'b' ) != NULL ) { | 
            
                  
                          | 799 | 800 | format = "%s\t%s\t%s"; | 
            
                      
                        | 800 |  | else | 
                        | 801 |  | format = "%-16.16s  %-40.40s  %s"; | 
                      
                        |  | 801 | bot = 1; | 
                        |  | 802 | irc_usermsg( irc, format, "Nick", "User/Host/Network", "Status" ); | 
                        |  | 803 | } else { | 
                        |  | 804 | format = "\003%c*\003 %-16.16s  %-40.40s %s"; | 
                        |  | 805 | irc_usermsg( irc, format, 7, "Nickname", "User/Host/Network", "Extra" ); | 
                        |  | 806 | } | 
            
                  
                          | 802 | 807 |  | 
            
                  
                          | 803 |  |         irc_usermsg( irc, format, "Nick", "User/Host/Network", "Status" ); | 
            
                  
                          | 804 | 808 |  | 
                          | 805 | 809 | for( u = irc->users; u; u = u->next ) if( u->ic && u->online && !u->away ) | 
                          | 806 | 810 | { | 
                          | 807 | 811 | if( online == 1 ) | 
                          | 808 | 812 | { | 
                          | 809 | 813 | g_snprintf( s, sizeof( s ) - 1, "%s@%s (%s)", u->user, u->host, u->ic->acc->prpl->name ); | 
            
                      
                        | 810 |  | irc_usermsg( irc, format, u->nick, s, "Online" ); | 
                      
                        |  | 814 | if (bot) | 
                        |  | 815 | irc_usermsg( irc, format, u->nick, s, "Online" ); | 
                        |  | 816 | else | 
                        |  | 817 | irc_usermsg( irc, format, '3', u->nick, s, "" ); | 
            
                  
                          | 811 | 818 | } | 
                          | 812 | 819 |  | 
                          | 813 | 820 | n_online ++; | 
            
              
                
                  | … | … |  | 
              
            
                  
                          | 818 | 825 | if( away == 1 ) | 
                          | 819 | 826 | { | 
                          | 820 | 827 | g_snprintf( s, sizeof( s ) - 1, "%s@%s (%s)", u->user, u->host, u->ic->acc->prpl->name ); | 
            
                      
                        | 821 |  | irc_usermsg( irc, format, u->nick, s, u->away ); | 
                      
                        |  | 828 | if (bot) | 
                        |  | 829 | irc_usermsg( irc, format, u->nick, s, u->away ); | 
                        |  | 830 | else | 
                        |  | 831 | irc_usermsg( irc, format, '2', u->nick, s, u->away ); | 
            
                  
                          | 822 | 832 | } | 
                          | 823 | 833 | n_away ++; | 
                          | 824 | 834 | } | 
            
              
                
                  | … | … |  | 
              
            
                  
                          | 828 | 838 | if( offline == 1 ) | 
                          | 829 | 839 | { | 
                          | 830 | 840 | g_snprintf( s, sizeof( s ) - 1, "%s@%s (%s)", u->user, u->host, u->ic->acc->prpl->name ); | 
            
                      
                        | 831 |  | irc_usermsg( irc, format, u->nick, s, "Offline" ); | 
                      
                        |  | 841 | if (bot) | 
                        |  | 842 | irc_usermsg( irc, format, u->nick, s, "Offline" ); | 
                        |  | 843 | else | 
                        |  | 844 | irc_usermsg( irc, format, '4', u->nick, s, "Offline" ); | 
            
                  
                          | 832 | 845 | } | 
                          | 833 | 846 | n_offline ++; | 
                          | 834 | 847 | } | 
            
              
                
                  | … | … |  | 
              
            
                  
                          | 931 | 944 | g_free( channel ); | 
                          | 932 | 945 | } | 
                          | 933 | 946 |  | 
            
                  
                          |  | 947 | static void cmd_noop( irc_t *irc, char **cmd ) | 
                          |  | 948 | { | 
                          |  | 949 | /* This is just a function. Don't hurt it. */ | 
                          |  | 950 | } | 
                          |  | 951 |  | 
            
                  
                          | 934 | 952 | const command_t commands[] = { | 
                          | 935 | 953 | { "help",           0, cmd_help,           0 }, | 
                          | 936 | 954 | { "identify",       1, cmd_identify,       0 }, | 
            
              
                
                  | … | … |  | 
              
            
                  
                          | 951 | 969 | { "nick",           1, cmd_nick,           0 }, | 
                          | 952 | 970 | { "qlist",          0, cmd_qlist,          0 }, | 
                          | 953 | 971 | { "join_chat",      2, cmd_join_chat,      0 }, | 
            
                  
                          |  | 972 | { "noop",           0, cmd_noop,           0 }, | 
            
                  
                          | 954 | 973 | { NULL } | 
                          | 955 | 974 | }; |