Change arcfour example module to use ARC4CHAT instead of SCHAT as the DCC type
The SCHAT type is already used by some other clients for SSL CHAT. This example module doesn't work yet anyway, so no-one can actually be using it.
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
[Changes 1.2.2]
|
||||
|
||||
* Change arcfour example module to use ARC4CHAT instead of SCHAT as the DCC
|
||||
type (SCHAT is already used by some other clients for SSL CHAT). (caf)
|
||||
|
||||
* Fix various problems with adding and removing module DCC bindings. The
|
||||
same DCC type cannot be bound by more than one module simultaneously. The
|
||||
remove_all_dcc_binds() function now only removes all DCC bindings for the
|
||||
|
||||
@@ -124,8 +124,8 @@ int Arcfour_Init(IrcCommandDll **intp, Function_ptr *global_table)
|
||||
|
||||
initialize_module(MODULE_NAME);
|
||||
memset(keyboxes, 0, sizeof(keyboxes));
|
||||
typenum = add_dcc_bind("SCHAT", MODULE_NAME, &schat_ops);
|
||||
add_module_proc(DCC_PROC, MODULE_NAME, "SCHAT", "Secure DCC Chat", 0, 0, dcc_sdcc, NULL);
|
||||
typenum = add_dcc_bind("ARC4CHAT", MODULE_NAME, &schat_ops);
|
||||
add_module_proc(DCC_PROC, MODULE_NAME, "ARC4CHAT", "ArcFour DCC Chat", 0, 0, dcc_sdcc, NULL);
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -282,6 +282,6 @@ void dcc_sdcc (char *name, char *args)
|
||||
if (p && *p)
|
||||
*p = 0;
|
||||
}
|
||||
dcc_create(args, "SCHAT", NULL, 0, 0, typenum, DCC_TWOCLIENTS, start_dcc_chat);
|
||||
dcc_create(args, "ARC4CHAT", NULL, 0, 0, typenum, DCC_TWOCLIENTS, start_dcc_chat);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user