This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

DALnet- how can a bot be delayed from joining chans until it

Old posts that have not been replied to for several years.
Locked
M
MajorMalfunction

Post by MajorMalfunction »

DALnet services tend to lag at times. On secured ops channels, services will deop clients until they id successfully. This makes for a nasty +op -op flood if the bots and op scripts are set to op each other. Any ideas from anyone on scripting a way to stop a bot from joining it's channels until it gets a nickserv reply msg would be greatly appreciated! I know how to bind a proc to the /ns reply, but never looked to see if there's any bot code that can be changed to stop the auto chans join on connect. Thanks!
S
SniperAC

Post by SniperAC »

why not make a simple script that makes the bot ident very fast when it connects

1 line if you want

set init-server { putquick PRIVMSG nickserv :identify Password }

just load it as a tlc script always works for me...

do the same for chanserv i made diff files tho so i didnt have to deal with any errors if any should come up

<font size=-1>[ This Message was edited by: SniperAC on 2002-03-20 02:00 ]</font>
User avatar
Yourname
Master
Posts: 358
Joined: Mon Sep 24, 2001 8:00 pm
Location: Toronto

Post by Yourname »

SniperAC, init-server is slow :smile:

And recently, i had to change the msgrate to 5 seconds becuz my bot wuz flooding off channel, cuz i made it to play a txt file to people who requested virus info.

But after i changed msgrate to 5 secs, my bot used to change nick to guest atleast 2 times before it successfully idented to nickserv.

I'm having a similar problem like that of Malfunction's, and i tried to solve it by making bop_delay (netbots) for sometime before the op procedures get triggered. And still the bot op/deop flood happens :sad:

_________________
´ourname
Yourname@k.st
http://www.hardfist.com

<font size=-1>[ This Message was edited by: Yourname on 2002-03-20 09:48 ]</font>
User avatar
stdragon
Owner
Posts: 959
Joined: Sun Sep 23, 2001 8:00 pm
Contact:

Post by stdragon »

You can try this script, it identifies when it connects and when nickserv returns from splits. In mine it uses putserv, but since you said your queue sucks, I changed it to putdccraw.

Code: Select all

set nickserv_password "baa"
bind raw - "001" on_connect
bind raw - "604" is_online
bind raw - "600" is_online
proc do_ident {args} {
  global nickserv_password
  set str "nickserv identify $nickserv_passwordrn"
  putdccraw 0 [string length $str] $str
}

proc on_connect {from keyword text} {
  putserv "watch +nickserv"
  do_ident
  return 0
}

proc is_online {from keyword text} {
  set who [lindex [split $text] 1]
  if {![string compare -nocase $who "nickserv"]} { do_ident }
  return 0
}
Locked