[color:brown];[/color]
[color:brown]; relay all chanserv notices to a custom window[/color]
[color:brown];[/color]
on [color:green]^[/color]*:NOTICE:*:*: {
[color:brown]; if you receive a notice, make sure it's from ChanServ[/color]
[color:brown]; on most networks, if there is a ChanServ, it is a restricted nick. if it is not, make sure to account for idiots trying to fool you[/color]
if ([color:red]$nick == ChanServ[/color]) {
[color:brown]; make sure the window exists![/color]
if (!$window([color:blue]$+(@,$nick)[/color])) window [color:blue]$+(@,$nick)[/color]
[color:brown]; send the notice to the window[/color]
aline [color:blue]$+(@,$nick)[/color] $timestamp $1-
[color:brown]; kill the default notice - haltdef works together with the ^ in the event line ![/color]
[color:green]haltdef[/color]
}
}