mIRC Home    About    Download    Register    News    Help

Print Thread
#168119 04/01/07 01:17 AM
Joined: Oct 2006
Posts: 342
L
learn3r Offline OP
Fjord artisan
OP Offline
Fjord artisan
L
Joined: Oct 2006
Posts: 342
Code:
aaaaaaa (~aaa@host) Quits Irc (Quit:)
^Stoned-Girl^31-brb (~todai@89.124.164.5) Has Joined (#channel)
^Stoned-Girl^31-brb (~todai@89.124.164.5) Has Left (#channel)



How can I do this?

Last edited by learn3r; 04/01/07 01:18 AM.

learn learn learn
Joined: Feb 2003
Posts: 3,432
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
Try this.. smile
Code:
on ^*:JOIN:#:{
  themejoin
}

alias themejoin {
  echo $chan %tstmp $+ $chr(3) $+ $color(join text) $nick ( $+ $address $+ ) has joined $chan | haltdef
}

on ^*:PART:#:{
  set %partmsg $1-
  themepart
}
alias themepart {
  if (%partmsg == $null) { set %partmsg $nick }
  echo $chan %tstmp $+ $chr(3) $+ $color(part text) $nick ( $+ $address $+ ) has left $chan ( $+ %partmsg $+ ) | unset %partmsg | haltdef
}

on ^*:QUIT:{
  if ($nick == $me) { goto end }
  settime
  set %quitmessage $1-
  if Ping timeout isin %quitmessage { set %quitmessage Ping timeout }
  if Connection reset by peer isin %quitmessage { set %quitmessage Connection reset by peer }
  set %quitchan $chan
  %quit.1 = 1 
  if (quit: isin %quitmessage) set %quitmessage $+ $remove(%quitmessage,quit:,...)
  :quits
  if ($nick ison $chan(%quit.1)) { 
    set %quit.echo $chan(%quit.1) 
    themequit
    inc %quit.1
    goto quits 
  }
  elseif ($chan(%quit.1) != $null) { inc %quit.1
  goto quits }
  halt
  else { goto naiquit }
  :naiquit
  halt
  :end
}
alias themequit {
  if %quitmessage == $null { set %quitmessage no reason }
  echo $chan(%quit.1) %tstmp $+ $chr(3) $+ $color(quit text) $nick ( $+ $address $+ ) Quit ( $+ %quitmessage $+ $chr(015) $+ $chr(3) $+ $color(quit text) $+ ) | haltdef
}

Going to your remote smile


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
Joined: Oct 2006
Posts: 342
L
learn3r Offline OP
Fjord artisan
OP Offline
Fjord artisan
L
Joined: Oct 2006
Posts: 342
Thanks very helpful hehehe
works as i requested cool..:D


learn learn learn
Joined: Feb 2003
Posts: 3,432
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
You can remove the %tstmp, i use that to gather infor for timestamp smile


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
Joined: Oct 2006
Posts: 342
L
learn3r Offline OP
Fjord artisan
OP Offline
Fjord artisan
L
Joined: Oct 2006
Posts: 342
removed the %thing hehehe thanks bro


learn learn learn

Link Copied to Clipboard