mIRC Home    About    Download    Register    News    Help

Print Thread
#35242 09/07/03 11:33 PM
Joined: Jul 2003
Posts: 46
V
vexx0r Offline OP
Ameglian cow
OP Offline
Ameglian cow
V
Joined: Jul 2003
Posts: 46
Ok, I am having problems with this stupid thing.
Code:
  
on *:INPUT:?:{ if ($left($1,1) != /) { echo $query $tstamp ( $+ $nick($chan,$me).pnick $+ ) $1- | .msg $query $1- | halt } }
on ^*:TEXT:*:?:{ echo $query $tstamp ( $+ $nick $+ ) $1- | haltdef }


I know I am obviously doing something wrong, maybe someone could tell me which echo, or identifier to use ect.. thanks


#35243 09/07/03 11:47 PM
Joined: Jan 2003
Posts: 2,523
Q
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,523
There is no $query identifier. There is a $query(), but as it's implied, it needs a nick or a number as a parameter. In the on INPUT use $active; in the on TEXT use $nick.


/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com
#35244 09/07/03 11:50 PM
Joined: Jul 2003
Posts: 46
V
vexx0r Offline OP
Ameglian cow
OP Offline
Ameglian cow
V
Joined: Jul 2003
Posts: 46
ahhh i was using $active, but a guy on an irc channel told me $query instead, thanks for your help!

#35245 09/07/03 11:51 PM
Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
i think you're using the $query in wrong context, unless it can be worked like that. Trythis tho..

Code:
on 1:INPUT:?: {
  if ($left($1, 1) !isin $+(/,$readini($mircini, text, commandchar)) {
    /echo -ati2 ( $+ $me $+ ) $1-
    .raw privmsg $nick $+(:,$1-)
    /halt
  }
}
on ^*:TEXT:*:?: {
  /echo -ti2 $nick ( $+ $nick $+ ) $1-
  /haltdef
}

i killed tstamp because the -t parameter is there for that. Also, the input is always going to appear in the active window, so echoing to the query window is more work then -a on the echo.

EDIT:
P.S. you don't need the .pnick stuff in a query as noone can "moderate" it. Much easier to use $nick and $me. Besides, there's no "$chan" identifier.


-KingTomato
#35246 10/07/03 12:05 AM
Joined: Jul 2003
Posts: 46
V
vexx0r Offline OP
Ameglian cow
OP Offline
Ameglian cow
V
Joined: Jul 2003
Posts: 46
whoops.... i pasted the wrong code :| sorry, and now its fixed... thanks for the help guys.


Link Copied to Clipboard