]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_park.cpp
Gah, im forgetting to SetMode!
[user/henk/code/inspircd.git] / src / modules / m_park.cpp
index 7abe31bafd08a78e89f2b5ed98dbdeca86d21cbb..a5c62da190fda453c81246a062c6aeec66ceea40 100644 (file)
@@ -161,11 +161,11 @@ class cmd_unpark : public command_t
                                }
                        }
                        // remove all their old modes
-                       WriteServ(user->fd,"MODE %s -%s",user->nick,user->modes);
+                       WriteServ(user->fd,"MODE %s -%s",user->nick,user->FormatModes());
                        // now, map them to the parked user, while nobody can see :p
                        Srv->PseudoToUser(user,unpark,"Unparked to "+std::string(parameters[0]));
                        // set all their new modes
-                       WriteServ(unpark->fd,"MODE %s +%s",unpark->nick,unpark->modes);
+                       WriteServ(unpark->fd,"MODE %s +%s",unpark->nick,unpark->FormatModes());
                        // spool their away log to them
                        WriteServ(unpark->fd,"NOTICE %s :*** You are now unparked. You have successfully taken back the nickname and privilages of %s.",unpark->nick,unpark->nick);
                        for (awaylog::iterator i = awy->begin(); i != awy->end(); i++)