mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Mar 2004
Posts: 35
N
Ameglian cow
OP Offline
Ameglian cow
N
Joined: Mar 2004
Posts: 35
Khaled,

It would help immensely if an option to customize how URLs look in the chat area and/or topics were added to mIRC. Some other chat clients for example, by default, show URLs in blue automatically so it stands out from the rest of the text in a channel. Currently, URLs look like all of the other text in the chat text area. Maybe an option to choose what color you would like for it to be displayed and/or having it underlined would be great.

Thanks,

Nomadic_Prophet


smile

Nomadic_Prophet
Joined: Feb 2003
Posts: 3,432
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
to realy highlight the spammers lines you mean ? i have enuff problem to avoid them as it is.. and then add colors to it? a no go for me.. cool


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
Joined: Mar 2004
Posts: 35
N
Ameglian cow
OP Offline
Ameglian cow
N
Joined: Mar 2004
Posts: 35
LOL, maybe you are in a pr0n channel or something. I don't have that problem.

Anyhow, mIRC is probably one of the only IRC clients that don't have the option to highlight their links in a channel so you can see them.

One of the channels I am in posts news article links that we discuss in the channel, so URLs in a channel are usually not spam.

Besides, that is why I said it should be an option that can be turned on or off, so we can both be happy. Colors are no big deal, they can be stripped from a channel by mIRC.

Thanks,

Nomadic_Prophet


smile

Nomadic_Prophet
Joined: Nov 2003
Posts: 2,327
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
For now you could use an on text event, there's a little bit more code here than what you need, but this lets you run certain urls that mIRC won't handle.

Code:
alias urlunderline { $iif($1 == on,.en,.dis) $+ able #url }

#url on
on *:input:*:{
  if (!$istok(/ $readini($mircini,text,commandchar),$left($1,1),32)) && (!$ctrlenter) {
    var %input = $1-
    .echo -q $regsub(%input,/((?:ftp:\/\/|https?:\/\/|www2?\.)[^<>\.\s]+(?:\.[^<>\.\s]+)+(?:\/[^<>\.\s]+)*)/g,\1,%input)
    .echo -q $regsub(%input,/(irc:\/\/[^<>\.\s]+(?:\.[^/<>\.\s]+)+(?:\/[^/<>\.\s]*)?\/?(?![^\s\x2c\.]))/g,\1,%input)
    .echo -q $regsub(%input,/(aim:goim\?screenname=[^\s&]+(?:&message=[^\s&=]+)?)/g,\1,%input)
    say %input
    halt
  }
}
on ^*:text:*:*:{
  var %text = $1-
  .echo -q $regsub(%text,/((?:ftp:\/\/|https?:\/\/|www2?\.)[^<>\.\s]+(?:\.[^<>\.\s]+)+(?:\/[^<>\.\s]+)*)/g,\1,%text)
  .echo -q $regsub(%text,/(irc:\/\/[^<>\.\s]+(?:\.[^/<>\.\s]+)+(?:\/[^/<>\.\s]*)?\/?(?![^\s\x2c\.]))/g,\1,%text)
  .echo -q $regsub(%text,/(aim:goim\?screenname=[^\s&]+(?:&message=[^\s&=]+)?)/g,\1,%text)
  echo -bcflirt $iif($chan,$chan,$iif($query($nick),$nick,$target)) $+(,$cnick($nick).color,<,$iif($gettok($readini($mircini,options,n2),30,44),$left($nick($chan,$nick).pnick,1)),$nick,>) %text
  haltdef
}
on $^*:hotlink:/aim:goim\?screenname=[^\s&]+(?:&message=[^\s&=]+)?|irc:\/\/[^<>\.\s]+(?:\.[^/<>\.\s]+)+(?:\/[^/<>\.\s]*)?\/?(?![^\s\x2c\.])/:*:{ return }
on *:hotlink:*:*:{
  if ($regex(aim,$1,/(aim:goim\?screenname=[^\s&]+(?:&message=[^\s&=]+)?)/)) { run $regml(aim,1) }
  elseif ($regex(irc,$1,/(irc:\/\/[^<>\.\s]+(?:\.[^/<>\.\s]+)+(?:\/[^/<>\.\s]*)?\/?(?![^\s\x2c\.]))/)) { run $regml(irc,1) }
}
#url end

menu menubar {
  $iif($group(#url).status == on,$style(1)) Url underlining: urlunderline $iif($group(#url).status == on,off,on)
}


New username: hixxy
Joined: Mar 2004
Posts: 35
N
Ameglian cow
OP Offline
Ameglian cow
N
Joined: Mar 2004
Posts: 35
Cool beans

Thanks,

Nomadic_Prophet


smile

Nomadic_Prophet
Joined: Feb 2003
Posts: 3,432
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
im in populare channels, and if its many people there, then it atract spamers, during 6 month i kicked 7000+ users that behaved bad/didnt folow ouer rules. and most kicks is people join the channel and spam diffrent things, mostley its porn sites, but many times they spam other sites too.. and i dont like spam at all, if it was up to me a spamer would be g-lined for life from the servers..


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
Joined: Mar 2004
Posts: 35
N
Ameglian cow
OP Offline
Ameglian cow
N
Joined: Mar 2004
Posts: 35
It sounds like you need some roach spray. I don't know what this has to do with my request though. Changing how the links look is not going to effect whether you get spammed or not.


smile

Nomadic_Prophet
Joined: Feb 2003
Posts: 3,432
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
just answered the reply i got on my first post........


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
Joined: Mar 2004
Posts: 35
N
Ameglian cow
OP Offline
Ameglian cow
N
Joined: Mar 2004
Posts: 35
oh

It sounds pretty crazy by how you describe it nontheless, hehe


smile

Nomadic_Prophet

Link Copied to Clipboard