mIRC Home    About    Download    Register    News    Help

Print Thread
#124621 09/07/05 03:49 PM
Joined: Jul 2005
Posts: 6
U
unseen Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
U
Joined: Jul 2005
Posts: 6
Hi,

I put this in my remote:

Code:
on 1:INPUT:#:{
  if ($left($1-,1) == /) {
    $1-
    halt
    } else {
    echo « $+ $asctime(hh:nn) $+ » < $+ $me $+ > $1- | halt
  }
}


It works fine, but now I cannot see what other people writes frown

Joined: Jan 2004
Posts: 129
A
Vogon poet
Offline
Vogon poet
A
Joined: Jan 2004
Posts: 129
Try this:

Code:
on 1:INPUT:*: {
  if ($1- != $null) && ($left($1,1) != /) { 


Greetz
Aaron


Deridio fatum
Joined: Jul 2005
Posts: 6
U
unseen Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
U
Joined: Jul 2005
Posts: 6
Code:
on 1:INPUT:*:{
  if ($1- != $null) && ($left($1,1) != /) { 
    echo « $+ $asctime(hh:nn) $+ » < $+ $me $+ > $1-
  }
}


I have that, it sends the message twice (one with my input, the other normal), and when I put a halt after, only me see the message, not the other. frown

Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Try:

Code:
on 1:INPUT:*:{  
  if ($1- != $null) && ($left($1,1) == /) { return $1- } 
  [color:blue]else {[/color]
    echo « $+ $asctime(hh:nn) $+ » < $+ $me $+ > $1- 
  [color:blue]}[/color]
  [color:blue]halt[/color]
}

Joined: Jul 2005
Posts: 6
U
unseen Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
U
Joined: Jul 2005
Posts: 6
Still not working :|

Joined: May 2005
Posts: 79
M
Babel fish
Offline
Babel fish
M
Joined: May 2005
Posts: 79
on *:Input:#: {


you might want to use this for other peoples text

on ^1:Text:*:#:{

Joined: Jul 2005
Posts: 6
U
unseen Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
U
Joined: Jul 2005
Posts: 6
[censored] it, it just won't work...

Joined: Apr 2003
Posts: 701
K
Hoopy frood
Offline
Hoopy frood
K
Joined: Apr 2003
Posts: 701
on 1:INPUT:#:{
if ($left($1,1) == /) return
.msg # $1-
echo # « $+ $asctime(hh:nn) $+ » < $+ $me $+ > $1-
halt
}

But, why don't you just change the timestamp in options->IRC->Messages to «hh:nn» and dump the on INPUT event? Do you really need a different timestamp for queries than for channels?

Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
Hes also bolding his nick, oh wow wave the flags! lol

heres what id do...
Code:
on *:INPUT:#:{
  if (!$istok(/ $readini($mircini, text, commandchar), $left($1, 1), 32)) &amp;&amp; (!$ctrlenter) &amp;&amp; (!$inpaste) {
    ;^ do NOT enter the IF in the event first character is a / or the definable command character orctrl enter pressed or in a paste.
    ;
    .msg $chan $1-
    ;^ silently send the text to the channel
    ;
    echo -c own $chan « $+ $asctime(hh:nn) $+ » &lt; $+ $me $+ &gt; $1-
    ;^ display you customized apparence of the text you entered, WITH the correct color!
    ;
    halt
  }
}


Link Copied to Clipboard