Blockland Forums > General Discussion
Alt-F4
Jacky:
When I pressed alt f4 I got ID 2222!
Brian Smithers:
--- Code: ---function isAltf4(%msg)
{
if(strPos(%msg,"altf4"))
return true;
if(strPos(%msg,"alt-f4"))
return true;
if(strPos(%msg,"alt f4"))
return true;
if(strPos(%msg,"alt+f4"))
return true;
return false;
}
package noAltf4
{
function serverCmdMessageSent(%client,%message)
{
%lwrMsg = strLwr(%message);
if(isAltf4(%lwrMsg))
return messageClient(%client,'',"\c6Please no stupid Alt-f4 messages.");
else
parent::serverCmdMessageSent(%client,%message);
}
};activatepackage(noAltf4);
--- End code ---
Anti Altf4 modFirst mod written on my new laptop!
Kalphiter:
Missed alt+F4 which is the most common way to write it, good job.
Brian Smithers:
--- Quote from: Kalphiter on June 17, 2012, 10:35:46 PM ---Missed alt+F4 which is the most common way to write it, good job.
--- End quote ---
Added
Cybersix:
--- Quote from: Brian Smithers on June 17, 2012, 10:34:44 PM ---
--- End quote ---
Completely unnecessary