mirror of
https://github.com/unrealircd/unrealircd.git
synced 2026-07-09 11:33:13 +02:00
Remove 'cptr' from all commands, hooks, etc. It only confuses people and
'sptr' is sufficient and in most cases the only one you should care about. Should you need it, you can access sptr->direction in cases where you need the old information (usually only for some sendto_* functions and some protoctl checks), so 'cptr' was redundant too. [!] This change likely introduces some bugs. This was many hours of work. I only cut some corners in 4 functions, which will be fixed at a later stage..... yes, more major changes to come. On the plus side, I likely fixed some bugs in the process. Situations where cptr vs sptr usage was incorrect. Eg using cptr->name (near server) when sptr->name should be used (the actual source server), etc....
This commit is contained in:
@@ -476,7 +476,7 @@ CMD_FUNC(cmd_smod)
|
||||
if (abort)
|
||||
{
|
||||
sendto_umode_global(UMODE_OPER, "ABORTING LINK: %s <=> %s", me.name, sptr->name);
|
||||
return exit_client(cptr, sptr, &me, NULL, "ABORTING LINK");
|
||||
return exit_client(sptr->direction, sptr, &me, NULL, "ABORTING LINK");
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user