Removing Join/Leave messages.

Hello everyone,
My server is currently running a custom chat box, although I was wondering how I would remove the default source join/leave message, as they coincide with it.

Thanks for your help.

Send this to the clients.

local function HideJoin( playerindex, playername, text, messagetype )
if messagetype == “joinleave” then
return true
hook.Add( “ChatText”, “HideJoin”, HideJoin )