ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/trunk/modules/m_resv.c
(Generate patch)

Comparing ircd-hybrid/trunk/modules/m_resv.c (file contents):
Revision 8430 by michael, Tue Feb 20 19:30:13 2018 UTC vs.
Revision 8431 by michael, Tue Mar 27 18:49:15 2018 UTC

# Line 72 | Line 72 | resv_handle(struct Client *source_p, con
72      }
73    }
74  
75 <  struct ResvItem *resv = resv_make(mask, reason, NULL);
76 <  if (!resv)
75 >  struct ResvItem *resv;
76 >  if ((resv = resv_make(mask, reason, NULL)) == NULL)
77    {
78      if (IsClient(source_p))
79        sendto_one_notice(source_p, &me, ":A RESV has already been placed on: %s", mask);

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)