mIRC Home    About    Download    Register    News    Help

Print Thread
#21227 27/04/03 08:13 PM
Joined: Mar 2003
Posts: 437
M
MTech Offline OP
Fjord artisan
OP Offline
Fjord artisan
M
Joined: Mar 2003
Posts: 437
on *:TEXT:! $+ $me:*: {
if ( %fld >= 1 ) {
if ($away ) { /msg $nick Im away for: $awaymsg :: $awaytime | /notice $nick i was in $active }
else { /msg $chan hold on | /notice $nick im in $active }
set -u30 %fld 1
}


dun work at all, can anyone help me plz?

#21228 27/04/03 08:53 PM
Joined: Dec 2002
Posts: 483
Pan-dimensional mouse
Offline
Pan-dimensional mouse
Joined: Dec 2002
Posts: 483
I think this works.. laugh
Code:
on *:TEXT:*:*: {
  if ($1 == ! $+ $me) {
    if ( %fld >= 1 ) { 
      if %awy == on {
        msg $nick Im away for: $awaymsg :: $awaytime
        notice $nick i was in $active
      }
      else {
        msg $chan hold on
        notice $nick im in $active
      }
      set -u30 %fld 1
    }
  }
}


Code:
raw 305:*: {
  set %awy off
}


[/code]raw 306:*: {
set %awy on
}[/code]

#21229 28/04/03 01:26 AM
Joined: Dec 2002
Posts: 332
C
Fjord artisan
Offline
Fjord artisan
C
Joined: Dec 2002
Posts: 332
not sure but you might try using
$(...)
This identifier can only be used in the text match section of an event definition. It allows you to create a match parameter dynamically.

on *:TEXT:$(! $+ $me):*: {


Link Copied to Clipboard