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.

[Help]Bots request script

Help for those learning Tcl or writing their own scripts.
Post Reply
N
Ni0
Voice
Posts: 13
Joined: Mon Dec 12, 2005 11:17 am

[Help]Bots request script

Post by Ni0 »

proc rjoin {frombot command text} {
set rnick [lindex [split $text] 0]
set rchan [lindex [split $text] 1]
set flags [lindex [split $text] 2]
if {[string index $flags 0] != "+"} {
set flags "+$flags"
return 0
}
if {![validchan $rchan]} {
channel add $rchan
set rhost [getchanhost $rnick $rchan]
if {[string match -nocase "*quakenet.org" "$rhost"]} {
set rhost *!*@[lindex [split $hostname @] 1]
} else {
set rhost *!$hostname
}
if {[validuser [hand2nick $nickname]]} {
chattr [nick2hand $rnick] +|almnoR $rchan
putserv "NOTICE $rnick :Request accepted: Please give me $flags on [rservice $rchan] using: /msg [rservice $rchan $::botnick $flags"
save
} elseif {![validuser $nickname]} {
adduser $nickname $rhost
chattr [nick2hand $rnick] +|almnoR $rchan
putserv "NOTICE $rnick :Request accepted: Please give me $flags on [rservice $rchan] using: /msg [rservice $rchan] $::botnick $flags"
putserv "NOTICE $rnick :Please setup your password using: /msg $::botnick pass <new_password>"
save
}
}
}

proc rservice {$rchan} {
if {[onchan L $rchan]} {
return L
} elseif {[onchan Q $rchan]} {
return Q
} else {
return "Q/L"
}
}


This the request script but i want to use it with Chanserv and Nickserv not with L and Q it's possible? All the script can be found here http://www.geocities.com/tclfreak/request.zip
m
metroid
Owner
Posts: 771
Joined: Wed Jun 16, 2004 2:46 am

Post by metroid »

this is that newbish rip of my script, and from what i can tell, this script would never work anyway because it's just crap.
Post Reply