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.

[Request/Resolved] SearchIRC Network Ranking

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
Post Reply
m
mr_fanatic
Voice
Posts: 11
Joined: Fri Aug 31, 2007 4:04 am

[Request/Resolved] SearchIRC Network Ranking

Post by mr_fanatic »

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.
User avatar
TCL_no_TK
Owner
Posts: 509
Joined: Fri Aug 25, 2006 7:05 pm
Location: England, Yorkshire

Post by TCL_no_TK »

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.
m
mr_fanatic
Voice
Posts: 11
Joined: Fri Aug 31, 2007 4:04 am

Post by mr_fanatic »

Thank you so much. Works perfect!! If anyone is interested in this tcl, usage is: .chanset #channel +network-rank
User avatar
TCL_no_TK
Owner
Posts: 509
Joined: Fri Aug 25, 2006 7:05 pm
Location: England, Yorkshire

Post by TCL_no_TK »

yw :)
v
vbirc
Voice
Posts: 2
Joined: Tue Oct 20, 2009 8:40 am

Post by vbirc »

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*
Post Reply