From e4c7305103c3293c0e87dd1412c1e9f668bee19c Mon Sep 17 00:00:00 2001 From: Jilles Tjoelker Date: Wed, 2 Apr 2008 20:43:12 +0200 Subject: [PATCH] Revert 415a87c328d1 as the corresponding ConfItem change won't be done now. --- modules/m_resv.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/modules/m_resv.c b/modules/m_resv.c index 7ad97e69..084f3f8e 100644 --- a/modules/m_resv.c +++ b/modules/m_resv.c @@ -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->info.name = rb_strdup(name); + aconf->name = rb_strdup(name); aconf->passwd = rb_strdup(reason); - add_to_resv_hash(aconf->info.name, aconf); + add_to_resv_hash(aconf->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->info.name, + write_confitem(RESV_TYPE, source_p, NULL, aconf->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->info.name = rb_strdup(name); + aconf->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->info.name, + write_confitem(RESV_TYPE, source_p, NULL, aconf->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->info.name, name)) + if(irccmp(aconf->name, name)) aconf = NULL; else break;