|
Joined: Dec 2002
Posts: 416
Fjord artisan
|
OP
Fjord artisan
Joined: Dec 2002
Posts: 416 |
This is a script I was using with my old mirc. Since I upgraded to the newer mirc. My messages to the channel have changed and the script does not work with the new mirc. This is how it shows up <Othello> messages everyone else in the channel shows up like this -={ users }=- messages Is there a way I can get it to show my messages with my nick in the brackets?
on ^*:TEXT:*:#: { if ($target ischan) { echo -tmi2 # $+(,,12,-={,,,2,$chr(32),$nick,$chr(32),,,12,}=-,1,) $1- | haltdef } else { echo -tlmi2 $nick $+(,,12,-={,,,2,$chr(32),$nick,$chr(32),,,12,}=-,1,) $1- | haltdef } }
|
|
|
|
Joined: Jan 2007
Posts: 1,155
Hoopy frood
|
Hoopy frood
Joined: Jan 2007
Posts: 1,155 |
on input
Also, your text event is for a channel. It uses # in the event.
on ^*:text:*:#:{
So I dont see any reason to double check if $target is a channel you are on. Its a channel text event. You wouldn't recieve it unless you were in the channel. Or maybe I'm wrong and there is a way you could get text events without being in the channel.
Regardless, you need to use the ON INPUT event for your own text.
/help on input
|
|
|
|
Joined: Dec 2002
Posts: 416
Fjord artisan
|
OP
Fjord artisan
Joined: Dec 2002
Posts: 416 |
I have noticed some issues when I use Omenserve where it shows my nick with out the brackets Let me try that and see if it helps. Thanks for the imput....
Last edited by Othello; 16/10/09 03:38 AM.
|
|
|
|
Joined: Dec 2002
Posts: 416
Fjord artisan
|
OP
Fjord artisan
Joined: Dec 2002
Posts: 416 |
I made the change by adding on 1:INPUT:#: my play messages to the channel using omenserv still show my nick as <othello>
|
|
|
|
Joined: Jul 2007
Posts: 1,124
Hoopy frood
|
Hoopy frood
Joined: Jul 2007
Posts: 1,124 |
on *:INPUT:#: {
if ($left($1,1) !isin / $readini($mircini,text,commandchar)) && (!$ctrlenter) {
echo -tlmi2 $target $+(,,12,-={,,,2,$chr(32),$nick(#,$me).pnick,$chr(32),,,12,}=-,1,) $1-
.msg $target $1- | halt
}
}
|
|
|
|
Joined: Dec 2002
Posts: 416
Fjord artisan
|
OP
Fjord artisan
Joined: Dec 2002
Posts: 416 |
This script and the one I modified work but I still get OmenServ playing messages to the channel that show my nick as <Othello> Play MSG
|
|
|
|
Joined: Jan 2007
Posts: 1,155
Hoopy frood
|
Hoopy frood
Joined: Jan 2007
Posts: 1,155 |
Did you use the input event Tomao showed you?
|
|
|
|
Joined: Dec 2002
Posts: 416
Fjord artisan
|
OP
Fjord artisan
Joined: Dec 2002
Posts: 416 |
Yes and I have added it to my irc but when Omenserv sends a msg to the channel it still comes out <Othello> Play message.....
<&Othello> • Type: @Othello For My List Of: 7,119 Files • Slots: 2/2 • Queued: 0 • Speed: 0cps • Next: NOW • Served: 889 • List: Sep 27th • Search: ON • Mode: Normal •
<&Othello> Type: !Othello Filename.ext To Get This • 44.5MB File
Last edited by Othello; 16/10/09 10:25 PM.
|
|
|
|
Joined: Jan 2007
Posts: 1,155
Hoopy frood
|
Hoopy frood
Joined: Jan 2007
Posts: 1,155 |
On Input is when you type a message in the editbox and press enter. If you have script that sends a msg to the channel you will need to make a new msg alias I believe. alias msg {
echo -tlmi2 $1 $+(,,12,-={,,,2,$chr(32),$nick($1,$me).pnick,$chr(32),,,12,}=-,1,) $2-
raw $+(:,$address($me,5)) PRIVMSG $1 $+(:,$2-)
} Im not positive this will work on your server. BUt the idea is the same.
|
|
|
|
Joined: Dec 2002
Posts: 416
Fjord artisan
|
OP
Fjord artisan
Joined: Dec 2002
Posts: 416 |
Thanks for the help. That simple line just corrected the problem
Last edited by Othello; 16/10/09 11:28 PM.
|
|
|
|
|