vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Beta Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=5)
-   -   Users in IRC - with eggdrop. html access (https://vborg.vbsupport.ru/showthread.php?t=46305)

Bumpaneer 04-14-2003 12:36 AM

Found this code, dunno if it help...

PHP Code:

# Location to save files 
set location "/home/ircadmin/MonkBOT/userlists/" 

# Channel to watch 
set chan "#unrealplayground" 

# How often to update file in minutes 
set updatetime 2 

# Check to see if the timer is running - only needed really during a .rehash 

putlog "users2list.tcl v1.0 has started" 

if {![info exists fileusers_running]} { 
  
timer $updatetime fileusers 
  set fileusers_running 1 


proc fileusers {} { 
  global 
updatetime chan file location 
  
if {![validchan $chan]} { 
    
putlog "ERROR - users2file.tcl - I am not on $chan, so I cannot output lists" 
    
return 
  

  
set l1 [chanlist $chan
  
set l2 {} 
  
set l3 {} 
  foreach 
u $l1 
    if {[
isop $u $chan]} { 
      
lappend l3 "@" 
    
} elseif {[isvoice $u $chan]} { 
      
lappend l3 "+v" 
    
} else { 
      
lappend l3 "" 
    

    
lappend l3 $u 
    lappend l3 
[getchanidle $u $chan
    
lappend l3 "[getchanhost $u $chan]" 
    
lappend l2 [join $l3 {,}] 
    
set l3 {} 
  } 

  
#write the files 
  
set fp [open "${location}${chan}.users.txt" w
  
puts $fp [join $l1 {,}] 
  
close $fp 
  set fp 
[open "${location}${chan}.status.txt" w
  
puts $fp [join $l2 \n
  
close $fp 

  
#restart the timer 
  
timer $updatetime fileusers 



Sasq 04-14-2003 12:50 AM

Danke, that should help :D sort something soon

Bumpaneer 04-24-2003 11:51 AM

Any luck?

Hellburn 05-02-2003 08:31 AM

Hi,

i have a little trouble with this hack. i have installed him on 2 difference servers. on the first server (suse) he is working perfectly but on the second Server (debian) he shows me always 'IRC Server Fault / Chatter=0'. I have installed the same nodbremote.txt and template on the servers. Please help me.

Greats
Hellburn

StevenTN 06-21-2003 05:01 PM

I finally installed the updated hack (I waited until a necessary upgrade to do so).

Great job with it!

Ogmuk 11-07-2003 11:11 PM

The bot works normally but when I add "source scripts/usc.tcl" to my eggdrop.conf and upload the file into the scripts directory it results in the following error:

Quote:

[18:05]Tcl error in file 'eggdrop.conf':
[18:05] invalid channel: #mychannel
while executing
"chanlist $i2h_chan"
(procedure "i2h:make" line 5)
invoked from within
"i2h:make"
(file "scripts/usc.tcl" line 57)
invoked from within
"source scripts/usc.tcl"
(file "eggdrop.conf" line 1338)
[18:05] * CONFIG FILE NOT LOADED (NOT FOUND, OR ERROR)

Ogmuk 11-08-2003 05:25 PM

This was solved... there was a problem in eggdrop.conf.

Ogmuk 11-08-2003 11:05 PM

Great hack. I hope that you'll release a vb3 version once the RC1 is released.

(sorry if this was already discussed earlier in this thread... I didn't have the time to read every page)

Bumpaneer 11-14-2003 04:11 PM

Customized it a bit for my forum: here is what I came up with.
Usernames are arranged by status, then alphabetically. Each group is also color coded. Attached is a screenshot, and my working code.

walkingthepath 11-15-2003 11:54 PM

having problems.... I keep getting Tcl error in script for 'timer1369': and the number randomly changes when I restart the bot. Once is that timer1111 and so on... What do I do??


All times are GMT. The time now is 06:34 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01067 seconds
  • Memory Usage 1,747KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete