fixed NULL pointer crash (used wrong variable) on m_names.c
authorpk910 <philipp@zoelle1.de>
Thu, 25 Aug 2011 01:49:01 +0000 (03:49 +0200)
committerpk910 <philipp@zoelle1.de>
Thu, 25 Aug 2011 01:49:01 +0000 (03:49 +0200)
ircd/m_names.c

index 0e1169e7016a38e300ece79c56871fe18c009971..26666a60931417e986b8ff2b6abff781be83a153 100644 (file)
@@ -319,7 +319,7 @@ int m_names(struct Client* cptr, struct Client* sptr, int parc, char* parv[])
          *  Special Case 3: User isn't on this channel, show all visible users, in 
          *  non secret channels.
          */ 
-        do_names(sptr, chptr, showingdelayed|NAMES_VIS|NAMES_EON|((ch2ptr->mode.mode & MODE_AUDITORIUM) ? NAMES_OPS : 0));
+        do_names(sptr, chptr, showingdelayed|NAMES_VIS|NAMES_EON|((chptr->mode.mode & MODE_AUDITORIUM) ? NAMES_OPS : 0));
       } 
     }
     else