1
0
mirror of https://github.com/osmarks/ngircd.git synced 2025-12-22 05:28:35 +00:00

IRC_JOIN(): Code cleanup

This commit is contained in:
Alexander Barton
2012-01-02 15:22:52 +01:00
parent af13732ec7
commit 013298d4c6

View File

@@ -327,7 +327,8 @@ IRC_JOIN( CLIENT *Client, REQUEST *Req )
target = Client; target = Client;
if (!target) if (!target)
return IRC_WriteStrClient(Client, ERR_NOSUCHNICK_MSG, Client_ID(Client), Req->prefix); return IRC_WriteStrClient(Client, ERR_NOSUCHNICK_MSG,
Client_ID(Client), Req->prefix);
/* Is argument "0"? */ /* Is argument "0"? */
if (Req->argc == 1 && !strncmp("0", Req->argv[0], 2)) if (Req->argc == 1 && !strncmp("0", Req->argv[0], 2))
@@ -359,8 +360,9 @@ IRC_JOIN( CLIENT *Client, REQUEST *Req )
chan = Channel_Search(channame); chan = Channel_Search(channame);
if (!chan && Conf_PredefChannelsOnly) { if (!chan && Conf_PredefChannelsOnly) {
/* channel must be created, but server does not allow this */ /* channel must be created, but forbidden by config */
IRC_WriteStrClient(Client, ERR_BANNEDFROMCHAN_MSG, Client_ID(Client), channame); IRC_WriteStrClient(Client, ERR_BANNEDFROMCHAN_MSG,
Client_ID(Client), channame);
break; break;
} }