summaryrefslogtreecommitdiff
path: root/modules/m_resv.c
diff options
context:
space:
mode:
authormichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2013-04-14 19:54:48 +0000
committermichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2013-04-14 19:54:48 +0000
commit186e3840dc0e313bf4bd2f91555a2dc5b7649ef6 (patch)
tree940a6e2b82a530751b91cbfffcd9e37002a6d709 /modules/m_resv.c
parent08deca61eee50077726f8633b92f8d0e49ac17dd (diff)
- Quarantined/reserved channels may now contain wildcards
git-svn-id: svn://svn.ircd-hybrid.org/svnroot/ircd-hybrid/trunk@1825 82007160-df01-0410-b94d-b575c5fd34c7
Diffstat (limited to 'modules/m_resv.c')
-rw-r--r--modules/m_resv.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/modules/m_resv.c b/modules/m_resv.c
index 785c068..6cdd293 100644
--- a/modules/m_resv.c
+++ b/modules/m_resv.c
@@ -221,7 +221,7 @@ parse_resv(struct Client *source_p, char *name, int tkline_time, char *reason)
{
struct MaskItem *conf = NULL;
- if ((conf = create_channel_resv(name, reason, 0)) == NULL)
+ if ((conf = create_channel_resv(name, reason)) == NULL)
{
sendto_one(source_p,
":%s NOTICE %s :A RESV has already been placed on channel: %s",
@@ -281,7 +281,7 @@ parse_resv(struct Client *source_p, char *name, int tkline_time, char *reason)
return;
}
- if ((conf = create_nick_resv(name, reason, 0)) == NULL)
+ if ((conf = create_nick_resv(name, reason)) == NULL)
{
sendto_one(source_p,
":%s NOTICE %s :A RESV has already been placed on nick %s",
@@ -334,8 +334,7 @@ remove_resv(struct Client *source_p, const char *name)
if (IsChanPrefix(*name))
{
- if (resv_channel_list.head == NULL ||
- !(conf = hash_find_resv(name)))
+ if ((conf = find_exact_name_conf(CONF_CRESV, NULL, name, NULL, NULL)) == NULL)
{
sendto_one(source_p,
":%s NOTICE %s :A RESV does not exist for channel: %s",
@@ -351,7 +350,7 @@ remove_resv(struct Client *source_p, const char *name)
return;
}
- delete_channel_resv(conf);
+ conf_free(conf);
sendto_one(source_p,
":%s NOTICE %s :The RESV has been removed on channel: %s",
me.name, source_p->name, name);