This plugin will block any message sent from a player that attempts to put an IP address in the text chat. This should help ensure that people aren't trying to steal your players, for example:
"hey guys, come join my server 216.18.203.226:27050"
You can whitelist certain IP address's by adding them to the file "sourcemod\configs\ipcb_whitelist.txt"
Installation Instructions:
ipchatblock.smx in your plugins folder,
ipchatblock.sp in your scripting folder,
and ipcb_whitelist.txt in your sourcemod\configs folder.
ipcb_whitelist.txt is only necessary if you want to have whitelisted IP addresses.
Commands:
sm_ipchatblock_reload
Reloads the whitelist file. If you've made any changes to the whitelist, or just added it, you will have to run this command to apply the changes.
cVars:
sm_ipchatblock_enabled
Default Value: 1 (Enabled)
Enables or disables the plugin.
Changelog:
Code:
Version 1.4: January 28th, 2011
*Allows Admins to say an IP in text chat.
*Fixed issue with the plugin not working if the whitelist file was not present.
*Fixed issue while trying to reload the whitelist if the file was just added, but didn't exist prior to the reload.
Version 1.3: January 17th, 2011
*Added a whitelist in key values format in order to allow certain IP's to be in the chat.
*Slight optimization using a pre-comiled regex for IP detection.
Version 1.2: January 16th, 2011
*Blocks all messages containing an IP, even if a port number isn't appended to the IP.
Version 1.1: January 16th, 2011
*Added a cvar to enable and disable the plugin.
Version 1.0: January 16th, 2011
* Initial Release.
This is my first public plugin on Allied Modders, and I look forward to making more simple plugins like this until I become more familiar with Sourcemod.
This was requested by Minimoney1 in IRC.

Thanks to DarthNinja for the idea to add a whitelist!

Thanks to _1Swatty for helping me clean up some code.