From e339ad3f755b77c16c3b9fdb544c2653e43c69a0 Mon Sep 17 00:00:00 2001 From: Bukz Date: Mon, 21 Nov 2011 16:24:45 +0000 Subject: [PATCH] new native alias "onPM" git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6702 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/clients2c.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source/src/clients2c.cpp b/source/src/clients2c.cpp index c715e25d..10efe73a 100644 --- a/source/src/clients2c.cpp +++ b/source/src/clients2c.cpp @@ -510,6 +510,11 @@ void parsemessages(int cn, playerent *d, ucharbuf &p) { conoutf("%s (PM):\f9 %s", colorname(d), highlight(text)); lastpm = d->clientnum; + if(identexists("onPM")) + { + defformatstring(onpm)("onPM %d %s", d->clientnum, text); + execute(onpm); + } } break; }