]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/u_listmode.h
And its all done and working!
[user/henk/code/inspircd.git] / include / u_listmode.h
index 0e2f051036f7288b6501f90e38f2913a987ae593..f6e3830513b16c304e44339322309d65621b9373 100644 (file)
@@ -1,3 +1,16 @@
+/*       +------------------------------------+
+ *       | Inspire Internet Relay Chat Daemon |
+ *       +------------------------------------+
+ *
+ *  InspIRCd: (C) 2002-2007 InspIRCd Development Team
+ * See: http://www.inspircd.org/wiki/index.php/Credits
+ *
+ * This program is free but copyrighted software; see
+ *            the file COPYING for details.
+ *
+ * ---------------------------------------------------
+ */
+
 #ifndef INSPIRCD_LISTMODE_PROVIDER
 #define INSPIRCD_LISTMODE_PROVIDER
 
@@ -109,9 +122,10 @@ class ListModeBase : public ModeHandler
                if (el)
                {
                        ServerInstance->Log(DEBUG,"Channel is extended with a list");
-                       irc::modestacker modestack(true);
+                       irc::modestacker modestack(false);
                        std::deque<std::string> stackresult;
                        const char* mode_junk[MAXMODES+1];
+                       mode_junk[0] = channel->name;
                        userrec* n = new userrec(ServerInstance);
                        n->SetFd(FD_MAGIC_NUMBER);
                        for(modelist::iterator it = el->begin(); it != el->end(); it++)