Hello gain. Let my try explain what i need.
When a user connect and type !code my Mirc client sent a pm to the user (not only notice but pm) with a message i choose ex. Your code is **** Even if i´m afk mode or not.
alias -l message { return Your message here. }
on *:TEXT:!code:#: {
if ($nick ison $chan) {
if (!%flood. [ $+ [ $address ] ]) {
.set -u60 %flood. [ $+ [ $address ] ] 1
.msg $nick $message
}
}
}
Sumsar wrote:When a user type !code, s/he will get a message, that looks like this: Your message here.
Change the 'message' in the alias(message) below.
I hope this helps you.
- Code: Select all
alias -l message { return Your message here. }
on *:TEXT:!code:#: {
if ($nick ison $chan) {
if (!%flood. [ $+ [ $address ] ]) {
.set -u60 %flood. [ $+ [ $address ] ] 1
.msg $nick $message
}
}
}
alias -l message { return Your message here. }
Sumsar wrote:Change the highlighted text.
alias -l message { return Your message here. }
on *:TEXT:!code:#: { //defines text event on channel
if ($nick ison $chan) { //this is already defined in the firsrt line and its expected the nick won't part - even if nick would, I think he'd want to send code too :-)
Users browsing this forum: No registered users and 0 guests