egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Reading notice from services

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests
View previous topic :: View next topic  
Author Message
IRCNick
Halfop


Joined: 12 Oct 2005
Posts: 64
Location: Germany

PostPosted: Wed Oct 12, 2005 10:00 pm    Post subject: Reading notice from services Reply with quote

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
View user's profile Send private message Visit poster's website
IRCNick
Halfop


Joined: 12 Oct 2005
Posts: 64
Location: Germany

PostPosted: Wed Oct 19, 2005 5:25 pm    Post subject: Hmm Reply with quote

Why noboby reply to my request ? Is it so hard ?
Back to top
View user's profile Send private message Visit poster's website
De Kus
Revered One


Joined: 15 Dec 2002
Posts: 1361
Location: Germany

PostPosted: Wed Oct 19, 2005 8:42 pm    Post subject: Reply with quote

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
View user's profile Send private message MSN Messenger
IRCNick
Halfop


Joined: 12 Oct 2005
Posts: 64
Location: Germany

PostPosted: Thu Oct 20, 2005 2:26 pm    Post subject: Hmm Reply with quote

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
View user's profile Send private message Visit poster's website
IRCNick
Halfop


Joined: 12 Oct 2005
Posts: 64
Location: Germany

PostPosted: Thu Nov 03, 2005 2:29 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Alchera
Revered One


Joined: 11 Aug 2003
Posts: 3344
Location: Ballarat Victoria, Australia

PostPosted: Thu Nov 03, 2005 6:43 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
IRCNick
Halfop


Joined: 12 Oct 2005
Posts: 64
Location: Germany

PostPosted: Sun Nov 13, 2005 10:48 am    Post subject: tcl noob :/ Reply with quote

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
View user's profile Send private message Visit poster's website
]Kami[
Owner


Joined: 24 Jul 2003
Posts: 590
Location: Slovenia

PostPosted: Sun Nov 13, 2005 11:03 am    Post subject: Reply with quote

# means comment Razz

You there whatever you want to happen when $dest is equal to $::botnick example: putquick "PRIVMSG $nick :something"
_________________
Slovene Eggdrop Page
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
IRCNick
Halfop


Joined: 12 Oct 2005
Posts: 64
Location: Germany

PostPosted: Tue Nov 15, 2005 12:47 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Alchera
Revered One


Joined: 11 Aug 2003
Posts: 3344
Location: Ballarat Victoria, Australia

PostPosted: Wed Nov 16, 2005 1:53 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber