1
0
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:
Bram Matthys
2019-10-06 07:25:31 +02:00
parent 24f73d8c4f
commit ba7ff01e0f
2 changed files with 1 additions and 4 deletions
+1 -1
View File
@@ -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);
}
}
-3
View File
@@ -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;