File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -510,12 +510,12 @@ static void rawParser(char *string) {
510
510
printf ("%*s<<< \x1b[34;1m%s\x1b[0m" , g - 3 , "" , nickname );
511
511
} else if (!strncmp (command , "PART" , 4 )) {
512
512
printf ("%*s<-- \x1b[34;1m%s\x1b[0m" , g - 3 , "" , nickname );
513
- if (strstr (channel , chan_default ) == NULL ) {
513
+ if (channel != NULL && strstr (channel , chan_default ) == NULL ) {
514
514
printf (" [\x1b[33m%s\x1b[0m] " , channel );
515
515
}
516
516
} else if (!strncmp (command , "JOIN" , 4 )) {
517
517
printf ("%*s--> \x1b[32;1m%s\x1b[0m" , g - 3 , "" , nickname );
518
- if (strstr (channel , chan_default ) == NULL ) {
518
+ if (channel != NULL && strstr (channel , chan_default ) == NULL ) {
519
519
printf (" [\x1b[33m%s\x1b[0m] " , channel );
520
520
}
521
521
} else if (!strncmp (command , "NICK" , 4 )) {
You can’t perform that action at this time.
0 commit comments