| View previous topic :: View next topic |
| Author |
Message |
cache Master
Joined: 10 Jan 2006 Posts: 306 Location: Mass
|
Posted: Mon Mar 06, 2006 7:26 pm Post subject: Check /raw command then change setting? |
|
|
I'm trying to make my bot do something on join of a channel
Once it joins the room I need the bot to do this:
/raw /mask
Then server will say something like this:
<#Channel> IP Mask is OFF
or
<#Channel> IP Mask is ON
Now... If it says it replies back "IP Mask is OFF" I want it to say:
/raw /maskon
If it says "IP Mask is ON" I want it to do nothing...
Help anyone?  |
|
| Back to top |
|
 |
Alchera Revered One

Joined: 11 Aug 2003 Posts: 3344 Location: Ballarat Victoria, Australia
|
Posted: Mon Mar 06, 2006 9:45 pm Post subject: |
|
|
Are you referring to the really annoying "/mode +/- x"? _________________ Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM |
|
| Back to top |
|
 |
cache Master
Joined: 10 Jan 2006 Posts: 306 Location: Mass
|
Posted: Mon Mar 06, 2006 9:49 pm Post subject: |
|
|
| No, I only made a sample up there to explain something then i can change it... |
|
| Back to top |
|
 |
demond Revered One

Joined: 12 Jun 2004 Posts: 3073 Location: San Francisco, CA
|
Posted: Mon Mar 06, 2006 10:56 pm Post subject: |
|
|
1. bind to JOIN and check if the joining nick is bot's nick
2. bind to RAW and issue your raw command; you'll have server's reply sent to your RAW handler proc - interpret it however you wish and then proceed further or not _________________ connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use [code] tag when posting logs, code |
|
| Back to top |
|
 |
|