mirror of
https://github.com/matrix-construct/construct
synced 2024-12-28 00:14:07 +01:00
Make m_resv.so build again.
This commit is contained in:
parent
78d19d6310
commit
3633815dd3
1 changed files with 6 additions and 6 deletions
|
@ -224,9 +224,9 @@ parse_resv(struct Client *source_p, const char *name,
|
|||
aconf = make_conf();
|
||||
aconf->status = CONF_RESV_CHANNEL;
|
||||
aconf->port = 0;
|
||||
aconf->name = rb_strdup(name);
|
||||
aconf->info.name = rb_strdup(name);
|
||||
aconf->passwd = rb_strdup(reason);
|
||||
add_to_resv_hash(aconf->name, aconf);
|
||||
add_to_resv_hash(aconf->info.name, aconf);
|
||||
|
||||
if(temp_time > 0)
|
||||
{
|
||||
|
@ -243,7 +243,7 @@ parse_resv(struct Client *source_p, const char *name,
|
|||
temp_time / 60, name);
|
||||
}
|
||||
else
|
||||
write_confitem(RESV_TYPE, source_p, NULL, aconf->name,
|
||||
write_confitem(RESV_TYPE, source_p, NULL, aconf->info.name,
|
||||
aconf->passwd, NULL, NULL, 0);
|
||||
}
|
||||
else if(clean_resv_nick(name))
|
||||
|
@ -282,7 +282,7 @@ parse_resv(struct Client *source_p, const char *name,
|
|||
aconf = make_conf();
|
||||
aconf->status = CONF_RESV_NICK;
|
||||
aconf->port = 0;
|
||||
aconf->name = rb_strdup(name);
|
||||
aconf->info.name = rb_strdup(name);
|
||||
aconf->passwd = rb_strdup(reason);
|
||||
rb_dlinkAddAlloc(aconf, &resv_conf_list);
|
||||
|
||||
|
@ -301,7 +301,7 @@ parse_resv(struct Client *source_p, const char *name,
|
|||
temp_time / 60, name);
|
||||
}
|
||||
else
|
||||
write_confitem(RESV_TYPE, source_p, NULL, aconf->name,
|
||||
write_confitem(RESV_TYPE, source_p, NULL, aconf->info.name,
|
||||
aconf->passwd, NULL, NULL, 0);
|
||||
}
|
||||
else
|
||||
|
@ -490,7 +490,7 @@ remove_resv(struct Client *source_p, const char *name)
|
|||
{
|
||||
aconf = ptr->data;
|
||||
|
||||
if(irccmp(aconf->name, name))
|
||||
if(irccmp(aconf->info.name, name))
|
||||
aconf = NULL;
|
||||
else
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue