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 

The ! character

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help
View previous topic :: View next topic  
Author Message
vigilant
Halfop


Joined: 05 Jan 2006
Posts: 48

PostPosted: Mon Sep 03, 2007 2:15 pm    Post subject: The ! character Reply with quote

What does it mean when you do {![command]}
And where can i read more about these? Smile
_________________
Anser Quraishi
Website: http://www.anserq.com
Back to top
View user's profile Send private message
rosc2112
Revered One


Joined: 19 Feb 2006
Posts: 1454
Location: Northeast Pennsylvania

PostPosted: Mon Sep 03, 2007 3:57 pm    Post subject: Reply with quote

Presumably it means someone is trying to exploit your bot by using tcl special chars in a command attempt..
Back to top
View user's profile Send private message
r0t3n
Owner


Joined: 31 May 2005
Posts: 507
Location: UK

PostPosted: Mon Sep 03, 2007 4:18 pm    Post subject: Reply with quote

if you mean inside an if statement, ! means if it failed.

Code:
if {[command]} { # [command] returned 1 } else { [command] returned 0 }

if {![command]} { # [command] returned 0 } else { [command returned 1 }


very rough example.
_________________
r0t3n @ #r0t3n @ Quakenet
Back to top
View user's profile Send private message MSN Messenger
Alchera
Revered One


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

PostPosted: Mon Sep 03, 2007 8:35 pm    Post subject: Re: The ! character Reply with quote

vigilant wrote:
What does it mean when you do {![command]}
And where can i read more about these? Smile

Tcl Developer Site could be a good place to start.

Your example isn't complete as the logical NOT is used within a conditional statement.

Simply put (your example) means:
Code:
if {NOT [command]} {
   then do something
}

_________________
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
vigilant
Halfop


Joined: 05 Jan 2006
Posts: 48

PostPosted: Mon Sep 03, 2007 11:04 pm    Post subject: Reply with quote

Thanks a lot Cool
_________________
Anser Quraishi
Website: http://www.anserq.com
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 -> Scripting Help 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