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.

Reading notice from services

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
Post Reply
I
IRCNick
Halfop
Posts: 64
Joined: Wed Oct 12, 2005 9:43 pm
Location: Germany
Contact:

Reading notice from services

Post by IRCNick »

Hi,

I have searched the tcl archive but I did'nt found anything. I need a script that read the access list for specific channel and save all words in different variables.

Sample

The bot send to services the command /msg cs access #channel list and become the following:

Code: Select all

[03:50] -CS- -- Access List for [#channel] --
[03:50] -CS- Num Level Hostmask
[03:50] -CS- --- ----- --------
[03:50] -CS- 1   100      Nick1           - Added by Nick2 (10000)
[03:50] -CS- 2   10000  Nick2            - Added as SuperOP
[03:50] -CS- -- End of list --
The bot read the first line word by word

Code: Select all

[03:50] -CS- 1   100      Nick1           - Added by Nick2 (10000)
and have to save the line for example in variables like these

Code: Select all

$num = 1 , $level = 100 , $nickname = Nick1 , and  $addedby = Nick2
Thank you in advanced
Last edited by IRCNick on Thu Dec 22, 2005 10:01 pm, edited 1 time in total.
I
IRCNick
Halfop
Posts: 64
Joined: Wed Oct 12, 2005 9:43 pm
Location: Germany
Contact:

Hmm

Post by IRCNick »

Why noboby reply to my request ? Is it so hard ?
User avatar
De Kus
Revered One
Posts: 1361
Joined: Sun Dec 15, 2002 11:41 am
Location: Germany

Post by De Kus »

your request is very vague. I would save such things in tables (2 level list) or in listed arrays.
De Kus
StarZ|De_Kus, De_Kus or DeKus on IRC
Copyright © 2005-2009 by De Kus - published under The MIT License
Love hurts, love strengthens...
I
IRCNick
Halfop
Posts: 64
Joined: Wed Oct 12, 2005 9:43 pm
Location: Germany
Contact:

Hmm

Post by IRCNick »

Vague? Really? I can't explain it easier, but I try.

I want that my eggdrop read the channel access list who is stored in CS (ChanServ) services DB. The command in my network to do this is:

Code: Select all

putserv "privmsg cs :access $channel list"
For my statistik(html) I need to be listed every line of this access list, but I need to use the different variables(my example in my 1st post) to implement my html code.
I
IRCNick
Halfop
Posts: 64
Joined: Wed Oct 12, 2005 9:43 pm
Location: Germany
Contact:

Post by IRCNick »

Is it still so difficult ? Help generally somebody in this forum or this is the next invented forum ? I think not, but my experience show anything else
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

IRCNick wrote:Is it still so difficult ? Help generally somebody in this forum or this is the next invented forum ? I think not, but my experience show anything else
Use the Search function as this has been discussed before.

Hint:

Code: Select all

bind notc - "*Access list for *" read:list

proc read:list {nick host hand arg {dest ""}} {
  set msg [stripcodes b $arg]
  if {[string equal $dest $::botnick]} {
    # .... do stuff
  }
}
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
I
IRCNick
Halfop
Posts: 64
Joined: Wed Oct 12, 2005 9:43 pm
Location: Germany
Contact:

tcl noob :/

Post by IRCNick »

Sry what exactly do this code?

Code: Select all

  if {[string equal $dest $::botnick]} {
    # .... do stuff
  }
do what ? what must be the content of this if statement
thanx
User avatar
]Kami[
Owner
Posts: 590
Joined: Thu Jul 24, 2003 2:59 pm
Location: Slovenia
Contact:

Post by ]Kami[ »

# means comment :P

You there whatever you want to happen when $dest is equal to $::botnick example: putquick "PRIVMSG $nick :something"
I
IRCNick
Halfop
Posts: 64
Joined: Wed Oct 12, 2005 9:43 pm
Location: Germany
Contact:

Post by IRCNick »

I know that # is a comment...

I need this part of tcl to generate a html statistic. I want to write the user level to this statistic. The nick I need to equal the nick with the handle from eggdrop, if user exist than to write the bot his level to html . I dont know if u can me understand ... if not than i try to explain again. 10x for u time
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

What you have asked for is not "2-3 lines script". Information from ChanServ needs to be saved to a text file and then that file used to apply the necessary data to your HTML code.
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
Post Reply