diff --git a/file/lib/system/event/listener/ChatRouteListener.class.php b/file/lib/system/event/listener/ChatRouteListener.class.php index 4f5f30b..0da8e8c 100644 --- a/file/lib/system/event/listener/ChatRouteListener.class.php +++ b/file/lib/system/event/listener/ChatRouteListener.class.php @@ -16,9 +16,10 @@ class ChatRouteListener implements \wcf\system\event\IEventListener { */ public function execute($eventObj, $className, $eventName) { $route = new \wcf\system\request\Route('chatAction'); - $route->setSchema('/{controller}/{action}'); + $route->setSchema('/{controller}/{action}/{id}'); $route->setParameterOption('controller', null, 'Chat'); $route->setParameterOption('action', null, '(Message|Log|Send|RefreshRoomList|Copyright|Leave)'); + $route->setParameterOption('id', null, '\d+', true); $eventObj->addRoute($route); } }