Jump to content

How to catch "/w" command?


Monkuar

Recommended Posts

My simple ajax chat script is working nice.  It's not long polling, only a short poll of about 5-10 seconds.  Nothing really "Good".

 

But I am wanting to make a command where users can send messages to each other by using /w USERNAME hello

 

 

How would I go about with javascript of extracting the "username" after the /w command? i would need to use some type of split I suppose?

 

Thanks :)

Link to comment
https://forums.phpfreaks.com/topic/267147-how-to-catch-w-command/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.