1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-05 14:33:12 +02:00

crypt fix

This commit is contained in:
stskeeps
2001-12-25 13:29:50 +00:00
parent 5c0894e57c
commit b2ef3ec1b6
4 changed files with 8 additions and 6 deletions
+1
View File
@@ -1030,3 +1030,4 @@ seen. gmtime warning still there
- beta5 released
- Fixed a bug causing /map to give away Ulines
- Fixed a possible segfault in m_stats
- Bug with crypt not working for /oper fixed
+1 -1
View File
@@ -139,7 +139,7 @@ int create_client(const char *hostname, const int hostport) {
/* winlocal
if ((descript=socket(PF_INET, SOCK_STREAM, 0)) < 0)
*/
if ((descript=socket(PF_INET, SOCK_STREAM, 0)) == INVALID_SOCKET) // winlocal
if ((descript=socket(PF_INET, SOCK_STREAM, 0)) == -1) // winlocal
fatal("socket");
name_to_number(AF_INET, hostname, hostport, &hostaddr, &adlen);
+1 -1
View File
@@ -448,7 +448,7 @@
*/
#define MAXTARGETS 20
#define TARGET_DELAY 120
#define TARGET_DELAY 15
/* STOP STOP STOP STOP STOP STOP STOP STOP STOP STOP STOP STOP STOP STOP */
+5 -4
View File
@@ -1342,6 +1342,11 @@ int _conf_oper(ConfigFile *conf, ConfigEntry *ce)
cep->ce_fileptr->cf_filename, cep->ce_varlinenum);
continue;
}
if (!strcmp(cep->ce_varname, "password"))
{
oper->auth = Auth_ConvertConf2AuthStruct(cep);
continue;
}
if (!cep->ce_entries)
{
/* standard variable */
@@ -1364,10 +1369,6 @@ int _conf_oper(ConfigFile *conf, ConfigEntry *ce)
cep->ce_vardata);
oper->class = default_class;
}
} else
if (!strcmp(cep->ce_varname, "password"))
{
oper->auth = Auth_ConvertConf2AuthStruct(cep);
}
else if (!strcmp(cep->ce_varname, "swhois")) {
ircstrdup(oper->swhois, cep->ce_vardata);