Meka][Meka Unstopable Posts: 700
|
Code: | --// PM Blocker.... 0.01 - Meka --// Meka][Meka Lua Plugin Required. function DataArrival(user, data) local s, e, par3 = string.find(string.sub(data, 1, (string.len(data)-1)), "$To") if s then --// lets tell user pm's are disabled... SendPMTo(user.iUserID, Hub.BotName(), 'PMs in this hub are disabled, please ask in main chat....or fuck off...'); --// block the pm ;) return 1; end; end; |
|
CrazyGuy n00b Posts: 32
| A small optimisation :wink:
Code: | --// PM Blocker.... 0.01 - Meka --// 0.02 - CrazyGuy --// Meka][Meka Lua Plugin Required. function DataArrival(user, data) if string.find(data, "$To") ~= nil then --// lets tell user pm's are disabled... SendPMTo(user.iUserID, Hub.BotName(), 'PMs in this hub are disabled, please ask in main chat....or fuck off...'); --// block the pm ;) return 1; end; end; |
|