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.

Join script

Old posts that have not been replied to for several years.
Locked
L
Leber
Voice
Posts: 2
Joined: Thu Jul 14, 2005 2:01 pm

Join script

Post by Leber »

Hi !
Do you know any script to request the bot into another channel , and the bot sets "requester +n #channel" ?
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

Code: Select all

bind pub - !join foo
proc foo {n u h c t} {
   set t [lindex [split $t] 0]
   if {[lsearch -exact [string tolower [channels]] [string tolower $t]] == -1} {
      channel add $t
      if {$h == "*"} {
         adduser $n *![getchanhost $n $c]
         chattr $n +n $t
      } {
         chattr $h +n $t
      }
      puthelp "notice $n :congratulations! you are now +n on newly added $t"
   }
}
L
Leber
Voice
Posts: 2
Joined: Thu Jul 14, 2005 2:01 pm

Post by Leber »

thx a lot
Locked