on *:input:*: {
if ( $server ) && ( $left($1-,1) != / ) {
msg $active $1- | halt
else {
halt
}
}
}

--- there you goes
im asking for a code that wont work when im not connected
this works fine though thanks...

How to put an echo when ur not connected or on the status window