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 

Silly Question - Easy Answer [ solved my self ]

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


Joined: 21 May 2006
Posts: 103

PostPosted: Thu Jun 01, 2006 12:36 am    Post subject: Silly Question - Easy Answer [ solved my self ] Reply with quote

hey guys.

I am having some issues with the following.

Can someone help me with this please.

Code:


bind pub - !kick pub:kick

proc pub:kick {nick uhost hand chan arg} { 
  putserv "kick $chan $arg REASON SET HERE IN SCRIPT - NOT ON IRC"
}

What might I be doing wrong?


I know there is no security on this bind / proc but its just for learning right now. I will use a auth system later on.

Thanks in advance you godly guru's Very Happy

God bless


Last edited by whittinghamj on Thu Jun 01, 2006 12:40 am; edited 1 time in total
Back to top
View user's profile Send private message
whittinghamj
Op


Joined: 21 May 2006
Posts: 103

PostPosted: Thu Jun 01, 2006 12:40 am    Post subject: Reply with quote

never mind - i fixed it in the original post - i was missing a close brace

its amazing how much trouble ] can do instead of a }

/me bands head on desk lol
Back to top
View user's profile Send private message
metroid
Owner


Joined: 16 Jun 2004
Posts: 771

PostPosted: Thu Jun 01, 2006 1:36 am    Post subject: Reply with quote

It's wrong anyway, you should always split the arg to make the string a list incase of special characters.

Code:
bind pub - !kick pub:kick

proc pub:kick {nick uhost hand chan arg} {
  putserv "KICK $chan [lindex [split $arg] 0] :REASON SET HERE IN SCRIPT - NOT ON IRC"
}


Also for future posts of you, try actually reading the error TCL returns, it would have clearly stated that you were missing a brace and there would be no need to post here about it then.

PS: why do you keep saying 'god bless' in all yours posts, i find it annoying though i don't know why.
Back to top
View user's profile Send private message
whittinghamj
Op


Joined: 21 May 2006
Posts: 103

PostPosted: Thu Jun 01, 2006 1:39 pm    Post subject: Reply with quote

MeTroiD

Thanks for your post, I was soooo figging tired when I posted that I did not know what I was doing lol.

Thanks for the code and tips.

As for the "god bless" to be honest, I dont really know why I put it in my posts. Just trying to be nice and friendly I guess and its something you dont hear that often any more. No offence intended by it :-s
Back to top
View user's profile Send private message
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