mirror of
https://github.com/unrealircd/unrealircd.git
synced 2026-07-10 12:43:12 +02:00
- Applied patch to fix some win32 problems reported by Bock, fixed by fez
This commit is contained in:
@@ -146,14 +146,15 @@ DLLFUNC int m_chghost(aClient *cptr, aClient *sptr, int parc, char *parv[])
|
||||
|
||||
if ((acptr = find_person(parv[1], NULL)))
|
||||
{
|
||||
DYN_LOCAL(char, did_parts, acptr->user->joined);
|
||||
if (MyClient(sptr) && (IsLocOp(sptr) && !MyClient(acptr)))
|
||||
{
|
||||
sendto_one(sptr, err_str(ERR_NOPRIVILEGES), me.name,
|
||||
parv[0]);
|
||||
DYN_FREE(did_parts);
|
||||
return 0;
|
||||
}
|
||||
|
||||
DYN_LOCAL(char, did_parts, acptr->user->joined);
|
||||
if (!strcmp(GetHost(acptr), parv[2]))
|
||||
{
|
||||
sendnotice(sptr, "*** /ChgHost Error: requested host is same as current host.");
|
||||
|
||||
@@ -158,14 +158,15 @@ int legalident = 1;
|
||||
|
||||
if ((acptr = find_person(parv[1], NULL)))
|
||||
{
|
||||
DYN_LOCAL(char, did_parts, acptr->user->joined);
|
||||
if (MyClient(sptr) && (IsLocOp(sptr) && !MyClient(acptr)))
|
||||
{
|
||||
sendto_one(sptr, err_str(ERR_NOPRIVILEGES), me.name,
|
||||
parv[0]);
|
||||
DYN_FREE(did_parts);
|
||||
return 0;
|
||||
}
|
||||
|
||||
DYN_LOCAL(char, did_parts, acptr->user->joined);
|
||||
switch (UHOST_ALLOWED)
|
||||
{
|
||||
case UHALLOW_NEVER:
|
||||
|
||||
Reference in New Issue
Block a user