| View previous topic :: View next topic |
| Author |
Message |
i.m.offline Halfop
Joined: 02 Mar 2006 Posts: 74
|
Posted: Thu Mar 09, 2006 10:39 am Post subject: Ban on Notify |
|
|
Hello Friends,
I would request for an script based on notify i.e. if some nick has been added to bots notify list and as soon as bot notifies that the specific nick is online, shall set the ban in channel. It would be something like blacklist but with no kicks. Because as soon as the user is banned wont be able to join the channel. Thanks in advance.
Regards |
|
| Back to top |
|
 |
demond Revered One

Joined: 12 Jun 2004 Posts: 3073 Location: San Francisco, CA
|
Posted: Fri Mar 10, 2006 11:20 pm Post subject: |
|
|
doesn't make sense, generally the user will /join quicker than your bot does ISON notify check. If your server supports WATCH, the thing might work, but it will still work by nick only
bottom line: use sticky bans _________________ connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use [code] tag when posting logs, code |
|
| Back to top |
|
 |
4mirc Voice

Joined: 16 May 2008 Posts: 37
|
Posted: Mon May 19, 2008 1:55 am Post subject: |
|
|
hi demond
i wanna ask if its possible to make this script but in other way
i mean if some nick has been added to bots notify list and as soon as bot
notifies that the specific nick is online, make the bot to send pvt msg to
the nick with this : Hi $nick You Are Added in This $chan ,, we are waiting
make the bot to send msg not to banned
help me if u can coz i have channel and some ops forget to join it so i
i wanna make my bot to invite them
thx alot |
|
| Back to top |
|
 |
speechles Revered One

Joined: 26 Aug 2006 Posts: 1398 Location: emerald triangle, california (coastal redwoods)
|
Posted: Mon May 19, 2008 3:19 am Post subject: |
|
|
| 4mirc wrote: | hi demond
i wanna ask if its possible to make this script but in other way
i mean if some nick has been added to bots notify list and as soon as bot
notifies that the specific nick is online, make the bot to send pvt msg to
the nick with this : Hi $nick You Are Added in This $chan ,, we are waiting
make the bot to send msg not to banned
help me if u can coz i have channel and some ops forget to join it so i
i wanna make my bot to invite them
thx alot | Your failing to realize the power of an invite only (+i) channel. It's creation was to allow users to selectively choose who can enter their channel. In the same regard as a key (+k) does. If you want to clutter your channels banlist, then by all means be my guest, as I can't stop you. I can only tell you the potential downside of doing so.... (ban list is full - cannot place ban). Using either +i or +k and customizing the script below with your prefered binding/response method. It's miles easier.
http://forum.egghelp.org/viewtopic.php?t=11205
Change the join bind to react on the whatever your doing.. This stuff is far from rocket science, an invite script is an invite script. Changing binds and responses in these is trivial. |
|
| Back to top |
|
 |
4mirc Voice

Joined: 16 May 2008 Posts: 37
|
Posted: Mon May 19, 2008 3:29 am Post subject: |
|
|
i wanna know something
can i make text with all nicks i need so when any 1 connect the server
is there any way to make the bot go prvt to the nick online and type
Hi $nick You Are op in This $chan
ison available in the server ison: Sysop |
|
| Back to top |
|
 |
speechles Revered One

Joined: 26 Aug 2006 Posts: 1398 Location: emerald triangle, california (coastal redwoods)
|
Posted: Mon May 19, 2008 3:49 am Post subject: |
|
|
| 4mirc wrote: | i wanna know something
can i make text with all nicks i need so when any 1 connect the server
is there any way to make the bot go prvt to the nick online and type
Hi $nick You Are op in This $chan
ison available in the server ison: Sysop |
If you know the server command to initiate the request, then the short answer to "can I (I is transitive here since used by yourself, it should be areplaced with YOU) make it?", is no. But can someone possibly make it for you with more information... yes. To read the reply from the server you will need to bind to raw events and parse for that type to be inbound. Not sure what the numeric is for that type. But knowing both, as well as the type of network your on (ircd type) would probably garner you more help.
EDIT: appears it's numeric 303, so indeed it's possible....Only problem in doing this would be the self-invoking timer to keep the CHECK_FOR_CREW_ISON procedure running. CHECK_FOR_CREW_ISON would merely perform the ison request , then set another timer to call itself as the prior one elapsed. When the ison reply comes in the CHECK_FOR_CREW procedure is triggered by the raw binding to 303 which parses the ison reply. In parsing the ison reply it simply compares this against your list and takes appropriate actions. Given the examples on egghelp already, I'm surprised you cannot figure this out on your own.. |
|
| Back to top |
|
 |
|