mIRC Home    About    Download    Register    News    Help

Print Thread
#8777 29/01/03 03:45 PM
Joined: Dec 2002
Posts: 51
D
Dingo Offline OP
Babel fish
OP Offline
Babel fish
D
Joined: Dec 2002
Posts: 51
here i have a script that sets the limit of the channel, now i only want to have it working on one server. i visit thes ame channel on 2 different servers. what do i use to detect the server please smile

I only want it to work for Undernet smile

Code:

#limitscript on
on *:JOIN:#beginner: {
if ( $server
  if (%join.count == $null) set %join.count 1
  if (%join.count < 4) { inc %join.count | halt }
  if (%join.count == 4) { set %chan.limit $calc($nick(#,0) + 7) | mode # +l %chan.limit | unset %join.count }
}
on *:PART:#beginner: {
  if (%part.count == $null) set %part.count 1
  if (%part.count < 8) { inc %part.count | halt }
  if (%part.count == 8) { set %chan.limit $calc($nick(#,0) + 7) | mode # +l %chan.limit | unset %part.count }
}

#limitscript end


Joined: Dec 2002
Posts: 3,138
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
Code:
#limitscript on
on *:JOIN:#beginner: {
  if ( $network == Undernet ) {  
    if (%join.count == $null) set %join.count 1  
    if (%join.count < 4) { inc %join.count | halt }  
    if (%join.count == 4) { set %chan.limit $calc($nick(#,0) + 7) | mode # +l %chan.limit | unset %join.count }
  }
}
on *:PART:#beginner: { 
  if ( $network == Undernet ) {  
    if (%part.count == $null) set %part.count 1
    if (%part.count < 8) { inc %part.count | halt } 
    if (%part.count == 8) { set %chan.limit $calc($nick(#,0) + 7) | mode # +l %chan.limit | unset %part.count }
  }
}
#limitscript end


Link Copied to Clipboard