mirror of
https://github.com/unrealircd/unrealircd.git
synced 2026-07-07 07:43:13 +02:00
Remove some unnecessary checks
This commit is contained in:
@@ -291,6 +291,6 @@ CMD_FUNC(cmd_invite)
|
||||
if (!is_silenced(client, target))
|
||||
{
|
||||
sendto_prefix_one(target, client, NULL, ":%s INVITE %s :%s", client->name,
|
||||
target->name, ((channel) ? (channel->chname) : parv[2]));
|
||||
target->name, channel->chname);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -143,9 +143,6 @@ CMD_FUNC(cmd_user)
|
||||
|
||||
if (!MyConnect(client))
|
||||
{
|
||||
if (client->srvptr == NULL)
|
||||
sendto_ops("WARNING, User %s introduced as being "
|
||||
"on non-existant server %s.", client->name, server);
|
||||
client->user->server = find_or_add(client->srvptr->name);
|
||||
strlcpy(client->user->realhost, host, sizeof(client->user->realhost));
|
||||
goto user_finish;
|
||||
|
||||
Reference in New Issue
Block a user