mIRC Home    About    Download    Register    News    Help

Print Thread
#207140 07/12/08 08:26 PM
Joined: Oct 2008
Posts: 167
S
Vogon poet
OP Offline
Vogon poet
S
Joined: Oct 2008
Posts: 167
I currently have:
Code:
on 1:text:*:#seanturner70: {
  if ($me == no-nick) {
    on 1:text:Topic: *:#seanturner70:/if ( $nick isop $chan || $nick ishop $chan ) { /set %topic $2- | /topic #seanturner70 Topic: %topic %divider %status %divider %static  }
    on 1:text:Status: *:#seanturner70:/if ( $nick isop $chan || $nick isop $chan ) { /set %status $2- | /topic #seanturner70 Topic: %topic %divider %status %divider %static  }
    on 1:text:Ads: *:#seanturner70:/if ( $nick isop $chan || $nick isop $chan ) { /set %static $2- | /topic #seanturner70 Topic: %topic %divider %status %%divider %static  }
    on 1:text:!tsync:#seanturner70 :/if ( $nick isop $chan || $nick ishop $chan ) { /topic #seanturner70 Topic: %topic %divider %status %divider %static }
    on 1:text:!divider *:#seanturner70 :/if ( $nick isop $chan || $nick ishop $chan ) { /set %divider $2- | /topic #seanturner70 Topic: %topic %divider %status %divider %static }
  }
}

and all I get is...
Quote:
[20:23] * zZzZzZz sets mode: +v no-nick
[20:23] <~seanturner70> test
[20:23] * no-nick changes topic to 'Topic: Welcome to #seanturner70 // Status: erm... // Dotcomboy17, join in! #DCBTVShow'
[20:23] * no-nick changes topic to 'Topic: Welcome to #seanturner70 // Status: erm... // Dotcomboy17, join in! #DCBTVShow'
[20:23] * no-nick changes topic to 'Topic: Welcome to #seanturner70 // Status: erm... Dotcomboy17, join in! #DCBTVShow'
[20:23] <~seanturner70> Topic: test2
[20:23] * no-nick changes topic to 'Topic: Welcome to #seanturner70 // Status: erm... // Dotcomboy17, join in! #DCBTVShow'
[20:23] * no-nick changes topic to 'Topic: Welcome to #seanturner70 // Status: erm... // Dotcomboy17, join in! #DCBTVShow'
[20:23] * no-nick changes topic to 'Topic: Welcome to #seanturner70 // Status: erm... // Dotcomboy17, join in! #DCBTVShow'



Any idea what I am doing wrong?

Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
You have events in an event. This is not allowed.
Code:
on @*:text:*:#seanturner70: {
  if ($me == no-nick) && $nick($chan,$nick,oh) {
    if $1 == Topic { set %topic $2- }
    elseif $1 == Status { set %status $2-   }
    elseif $1 == Ads { set %static $2-  }
    elseif $1 == !divider { set %divider $2- }
    if $istok(Topic Status Ads !divider !tsync,$1,32) {
      topic #seanturner70 Topic: %topic %divider %status %divider %static 
    }
  }
}


Link Copied to Clipboard