The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

How to edit for swearing and intro messages for AWC?

2 posters

Go down

In progress How to edit for swearing and intro messages for AWC?

Post by Doktoroktopus March 7th 2013, 7:21 am

Hello!

I'd like to add the following message to my AWC chat as a prompt when someone logs in to the chat:

"Welcome to Club 1kJho's Chat Centre! You can check out a list of the chatbox commands by typing /cmd into the message box. Any excessive profanity or derogatory terms will cause you to be banned. Feel free to ask for hunting partners!"

1) Does anyone know the coding for this?

I'd also like to censor bad words. I know the AWC says this:

" avacweb_chat_config.message_hook.push(function(row, username, user_id, user, msg) {
msg.innerHTML = msg.innerHTML.replace(/\b(stupid|idiot)\b/gi, '[CENSORED]');
});"

2) But I'm not sure where to put it in the AWC javascript. Any suggestions?

avatar
Doktoroktopus
Forumember

Posts : 81
Reputation : 1
Language : English

http://www.club1kjho.com/

Back to top Go down

In progress Re: How to edit for swearing and intro messages for AWC?

Post by LGforum March 10th 2013, 11:38 am

You put it directly below the AWC installation script - in the same JavaScript.
LGforum
LGforum
Hyperactive

Male Posts : 2265
Reputation : 264
Language : English
Location : UK

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum