1、首先打开gmsv文件夹下的callfromcli.c
2、搜索void lssproto_TK_recv( int fd,int x, int y,char* message,int color, int area )
3、拉到最下找到CHAR_Talk( fd,fd_charaindex, message, color, area );
4、把CHAR_Talk( fd,fd_charaindex, message, color, area );屏蔽
5、加入下列代码
if( (strstr( message, "[")&&strstr( message, "]")) || strstr(message,"@") || strstr(message,"/") || strstr(message,"//")){ CHAR_Talk( fd,fd_charaindex, message, color, area ); }else{ char str[512]; strcpy(str, message); strcat(str," - [欢迎加入石器SF发布网]"); //puts(str); CHAR_Talk( fd,fd_charaindex, str, color, area ); }
发表评论
◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。