mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Oct 2006
Posts: 82
B
Babel fish
OP Offline
Babel fish
B
Joined: Oct 2006
Posts: 82
Hi there.

Simply how do i create a channel part message ?

so if i were to part lets say #help

it would say:

[23:30] * ^Silent_Runner^ has left #help (cheerio folks till the next time)

Any help would be appreciated.

P.S. i know how to do a quit message! lol


Never ASSUME!!!

As it often makes and ASS out of U and ME!!
Joined: Oct 2005
Posts: 1,741
G
Hoopy frood
Offline
Hoopy frood
G
Joined: Oct 2005
Posts: 1,741
Part messages are almost the same as quit messages:

/part #channel your message goes here

-genius_at_work

Joined: Oct 2003
Posts: 313
S
Fjord artisan
Offline
Fjord artisan
S
Joined: Oct 2003
Posts: 313
I'm guessing the OP wants something that always does it. Something like:

Code:
alias part { 
;; Has the user specified a channel? If no, use the current one
  var %chan = $iif($1 ischan,$1,$chan)
;; default message
  var %msg = cheerio folks

;; Do we have a user-defined message? If so, use that instead of the default
  if (($1 ischan) && $2) { %msg = $2- }
  if ($1 && $1 !ischan) { %msg = $1- }

;; do the part
  !part %chan %msg
}

(!!!UNTESTED!!!)

Bit OTT, perhaps, but it does the job and tries to look similar to the builtin /part.


Sais
Joined: Oct 2006
Posts: 82
B
Babel fish
OP Offline
Babel fish
B
Joined: Oct 2006
Posts: 82
that works a treat thank you very much

smile


Never ASSUME!!!

As it often makes and ASS out of U and ME!!

Link Copied to Clipboard