new native alias "onPM"

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6702 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Bukz
2011-11-21 16:24:45 +00:00
parent f032e31896
commit e339ad3f75
+5
View File
@@ -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;
}