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.

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