mirror of
https://github.com/unrealircd/unrealircd.git
synced 2026-07-07 20:43:13 +02:00
You can now no longer use parv[0]. Doing so will lead to a crash, this is intentional. Use sptr->name instead.
No UnrealIRCd code reads from parv[0] anymore. Perhaps later, after a few stable versions, we'll turn this into something more useful. Or not. But not soon.
This commit is contained in:
+4
-2
@@ -218,7 +218,8 @@ int parse(aClient *cptr, char *buffer, char *bufend)
|
||||
*s = '\0';
|
||||
for (ch = buffer; *ch == ' '; ch++)
|
||||
;
|
||||
para[0] = from->name;
|
||||
//para[0] = from->name;
|
||||
para[0] = 0xDEADBEEF; /* helps us catch bugs :) -- 1/2 */
|
||||
if (*ch == ':' || *ch == '@')
|
||||
{
|
||||
/*
|
||||
@@ -245,7 +246,8 @@ int parse(aClient *cptr, char *buffer, char *bufend)
|
||||
from = find_client(sender, (aClient *)NULL);
|
||||
if (!from && index(sender, '@'))
|
||||
from = find_nickserv(sender, (aClient *)NULL);
|
||||
para[0] = sender;
|
||||
//para[0] = sender;
|
||||
para[0] = 0xDEADBEEF; /* helps us catch bugs :) -- 2/2 */
|
||||
|
||||
/* Hmm! If the client corresponding to the
|
||||
* prefix is not found--what is the correct
|
||||
|
||||
Reference in New Issue
Block a user