mIRC Home    About    Download    Register    News    Help

Print Thread
#44993 30/08/03 02:57 AM
Joined: Dec 2002
Posts: 343
D
Pan-dimensional mouse
OP Offline
Pan-dimensional mouse
D
Joined: Dec 2002
Posts: 343
Maybe a way to part all the channels except certain ones.

Like /part -e #specificCHANyouDONTwantToLeave,#OtherChannel

-e standing for exception.

#44994 30/08/03 05:29 AM
Joined: Dec 2002
Posts: 169
J
Vogon poet
Offline
Vogon poet
J
Joined: Dec 2002
Posts: 169
Why include a channel in /part if you do not want to part it? If you mean /partall then this could be accomplished by an alias for now though I see no harm in adding it. Quickie example:
Code:
alias PartAll {
  if (-*e* iswm $1) {
    var %i = 1
    while ($chan(%i)) {
      var %chan = $ifmatch
      if (!$istok($2,%chan,44)) { part %chan $3- }
      inc %i
    }
    echo $color(info) -est * Parting all channels...
  }
  else { !partall $1- }
}

#44995 30/08/03 05:36 AM
Joined: Dec 2002
Posts: 343
D
Pan-dimensional mouse
OP Offline
Pan-dimensional mouse
D
Joined: Dec 2002
Posts: 343
I guess it would be better suited as /partall -e #chanexception1,#chanexception2 to part all the channels but those two. Something I think should be built in, but oh well. Time will tell.

#44996 02/09/03 12:45 AM
Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
Partall with exception would b nice...


-KingTomato

Link Copied to Clipboard