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.
Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
mr_fanatic
Voice
Posts: 11 Joined: Fri Aug 31, 2007 4:04 am
Post
by mr_fanatic » Wed Aug 26, 2009 3:23 pm
It would be lovely if anyone can code it like this:
<mr_fanatic> !rank Dalnet
<eggdrop> Dalnet ranked #6 out of 5,402
<mr_fanatic> !rank Undernet
<eggdrop> Undernet ranked #2 out of 5,402
Info page:
http://searchirc.com/rank/undernet
If its too complex, a display for only one network will be lovely too ^^
Last edited by
mr_fanatic on Sat Aug 29, 2009 11:51 am, edited 1 time in total.
TCL_no_TK
Owner
Posts: 509 Joined: Fri Aug 25, 2006 7:05 pm
Location: England, Yorkshire
Post
by TCL_no_TK » Sat Aug 29, 2009 11:31 am
Code: Select all
package require http
..snipped..
bind pub -|- !rank pub:rank
setudef flag network-rank
proc pub:rank {nick host hand chan text} {
if {[llength $text] == 0} {
puthelp "NOTICE $nick :Usage: !rank <IRC Network>"
puthelp "NOTICE $nick :Displays the rank of the given irc network on searchirc"
return 0
}
if {![channel get "$chan" network-rank]} {
return 0
}
set network_name [lindex [split $text] 0]
return [networkrank "$network_name" "$chan"]
}
putlog "loaded searchirc_network_rank.tcl by TCL_no_TK version 1.0"
return
Last edited by
TCL_no_TK on Sat Aug 29, 2009 9:11 pm, edited 1 time in total.
mr_fanatic
Voice
Posts: 11 Joined: Fri Aug 31, 2007 4:04 am
Post
by mr_fanatic » Sat Aug 29, 2009 11:48 am
Thank you so much. Works perfect!! If anyone is interested in this tcl, usage is: .chanset #channel +network-rank
TCL_no_TK
Owner
Posts: 509 Joined: Fri Aug 25, 2006 7:05 pm
Location: England, Yorkshire
Post
by TCL_no_TK » Sat Aug 29, 2009 9:10 pm
yw
vbirc
Voice
Posts: 2 Joined: Tue Oct 20, 2009 8:40 am
Post
by vbirc » Tue Oct 20, 2009 9:24 am
I see the code, but it has ..snipped.. am I missing something?
Sorry, but I don't see essential code to have it be a working script,
and egghelp tcl archive doesn't have a script for keyword "SearchIRC".
*scratches head*