egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

[Help]Bots request script

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help
View previous topic :: View next topic  
Author Message
Ni0
Voice


Joined: 12 Dec 2005
Posts: 13

PostPosted: Thu Mar 02, 2006 11:54 am    Post subject: [Help]Bots request script Reply with quote

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
Back to top
View user's profile Send private message
metroid
Owner


Joined: 16 Jun 2004
Posts: 771

PostPosted: Fri Mar 03, 2006 3:41 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber