View previous topic :: View next topic |
Author |
Message |
IRCNick Halfop
Joined: 12 Oct 2005 Posts: 64 Location: Germany
|
Posted: Wed Oct 12, 2005 10:00 pm Post subject: Reading notice from services |
|
|
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: | [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: | [03:50] -CS- 1 100 Nick1 - Added by Nick2 (10000) |
and have to save the line for example in variables like these
Code: | $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 |
|
Back to top |
|
 |
IRCNick Halfop
Joined: 12 Oct 2005 Posts: 64 Location: Germany
|
Posted: Wed Oct 19, 2005 5:25 pm Post subject: Hmm |
|
|
Why noboby reply to my request ? Is it so hard ? |
|
Back to top |
|
 |
De Kus Revered One

Joined: 15 Dec 2002 Posts: 1361 Location: Germany
|
Posted: Wed Oct 19, 2005 8:42 pm Post subject: |
|
|
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... |
|
Back to top |
|
 |
IRCNick Halfop
Joined: 12 Oct 2005 Posts: 64 Location: Germany
|
Posted: Thu Oct 20, 2005 2:26 pm Post subject: Hmm |
|
|
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: | 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. |
|
Back to top |
|
 |
IRCNick Halfop
Joined: 12 Oct 2005 Posts: 64 Location: Germany
|
Posted: Thu Nov 03, 2005 2:29 pm Post subject: |
|
|
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 |
|
Back to top |
|
 |
Alchera Revered One

Joined: 11 Aug 2003 Posts: 3344 Location: Ballarat Victoria, Australia
|
Posted: Thu Nov 03, 2005 6:43 pm Post subject: |
|
|
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: | 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 |
|
Back to top |
|
 |
IRCNick Halfop
Joined: 12 Oct 2005 Posts: 64 Location: Germany
|
Posted: Sun Nov 13, 2005 10:48 am Post subject: tcl noob :/ |
|
|
Sry what exactly do this code?
Quote: | Code: | if {[string equal $dest $::botnick]} {
# .... do stuff
} |
|
do what ? what must be the content of this if statement
thanx |
|
Back to top |
|
 |
]Kami[ Owner

Joined: 24 Jul 2003 Posts: 590 Location: Slovenia
|
Posted: Sun Nov 13, 2005 11:03 am Post subject: |
|
|
# means comment
You there whatever you want to happen when $dest is equal to $::botnick example: putquick "PRIVMSG $nick :something" _________________ Slovene Eggdrop Page |
|
Back to top |
|
 |
IRCNick Halfop
Joined: 12 Oct 2005 Posts: 64 Location: Germany
|
Posted: Tue Nov 15, 2005 12:47 pm Post subject: |
|
|
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 |
|
Back to top |
|
 |
Alchera Revered One

Joined: 11 Aug 2003 Posts: 3344 Location: Ballarat Victoria, Australia
|
Posted: Wed Nov 16, 2005 1:53 am Post subject: |
|
|
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 |
|
Back to top |
|
 |
|