Fixes to magichat client
This commit is contained in:
parent
7bb688b32f
commit
879bf81d80
@ -149,7 +149,7 @@ void chat_system(struct user_record *user) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
memset(inputbuffer, 0, 80);
|
memset(inputbuffer, 0, 80);
|
||||||
if (conf.mgchat_server == NULL) {
|
if (conf.mgchat_server == NULL && conf.mgchat_bbstag != NULL) {
|
||||||
s_putstring(get_string(49));
|
s_putstring(get_string(49));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -186,6 +186,8 @@ void chat_system(struct user_record *user) {
|
|||||||
memset(screenbuffer[i], 0, 81);
|
memset(screenbuffer[i], 0, 81);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
raw("{ \"bbstag\": \"%s\", \"nick\": \"%s\", \"msg\": \"LOGIN\" }", conf.mgchat_bbstag, user->loginname);
|
||||||
|
|
||||||
while (1) {
|
while (1) {
|
||||||
FD_ZERO(&fds);
|
FD_ZERO(&fds);
|
||||||
FD_SET(chat_in, &fds);
|
FD_SET(chat_in, &fds);
|
||||||
|
1
main.c
1
main.c
@ -1083,6 +1083,7 @@ int main(int argc, char **argv) {
|
|||||||
conf.file_directory_count = 0;
|
conf.file_directory_count = 0;
|
||||||
conf.mgchat_server = NULL;
|
conf.mgchat_server = NULL;
|
||||||
conf.mgchat_port = 2025;
|
conf.mgchat_port = 2025;
|
||||||
|
conf.mgchat_bbstag = NULL;
|
||||||
conf.text_file_count = 0;
|
conf.text_file_count = 0;
|
||||||
conf.external_editor_cmd = NULL;
|
conf.external_editor_cmd = NULL;
|
||||||
conf.log_path = NULL;
|
conf.log_path = NULL;
|
||||||
|
Reference in New Issue
Block a user