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

Comparing ircd-hybrid-7.3/modules/m_list.c (file contents):
Revision 1120 by michael, Sun Nov 8 13:10:50 2009 UTC vs.
Revision 1121 by michael, Sun Jan 9 11:03:03 2011 UTC

# Line 48 | Line 48 | struct Message list_msgtab = {
48    {m_unregistered, m_list, m_ignore, m_ignore, mo_list, m_ignore}
49   };
50  
51 – #ifndef STATIC_MODULES
51   void
52   _modinit(void)
53   {
# Line 66 | Line 65 | _moddeinit(void)
65   }
66  
67   const char *_version = "$Revision$";
69 – #endif
68  
69   static int
70   has_wildcards(const char *s)
# Line 112 | Line 110 | do_list(struct Client *source_p, int par
110        switch (*opt)
111        {
112          case '<': if ((i = atoi(opt + 1)) > 0)
113 <                    lt->users_max = (unsigned int) i - 1;
113 >                    lt->users_max = (unsigned int) i - 1;
114                    else
115 <                    errors = 1;
116 <                  break;
115 >                    errors = 1;
116 >                  break;
117          case '>': if ((i = atoi(opt + 1)) >= 0)
118 <                    lt->users_min = (unsigned int) i + 1;
119 <                  else
120 <                    errors = 1;
121 <                  break;
118 >                    lt->users_min = (unsigned int) i + 1;
119 >                  else
120 >                    errors = 1;
121 >                  break;
122          case '-': break;
123          case 'C':
124 <        case 'c': switch (*++opt)
125 <                  {
124 >        case 'c': switch (*++opt)
125 >                  {
126                      case '<': if ((i = atoi(opt + 1)) >= 0)
127                                  lt->created_max = (unsigned int) (CurrentTime
128                                                    - 60 * i);

Diff Legend

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