Mass mode change

By TMFKSOFT on Feb 28, 2011

I recently have used xChat a few times when ive had problems with mIRC.
I have really taken to the multipile mode changing where you can select users in the user list and voice them or de-voice them etc all in one go.

Unfortunatley mIRC don't have this feature the most amount of selectable nick names is three and voicing more than three users at a time is anoying as it means selecting them in groups of three.

The original code shows this:
.Voice:/mode # +vvv $$1 $2 $3
.Devoice:/mode # -vvv $$1 $2 $3

I have looked around and played till i've improved it.

It now looks like this:
.Voice:/mode # + $+ $str(v,$snick(#,0)) $replace($snicks,$chr(44),$chr(32))
.Devoice:/mode # - $+ $str(v,$snick(#,0)) $replace($snicks,$chr(44),$chr(32))

What does it do now?
It will count the amount of selected nicks and repeat the mode that amount of times.
It will then add the list of nicks on the end with commas replaced with spaces.

Usage:
Place in the popups tab under "nick list"
I have also added a quick notice function, Rightclick the nick and select notice and type in a message.

Enjoy and leave feedback.

Updates
Theres only a max of 12 nicks being mode changed at the same time!

Info:/uwho $1
Whois:/whois $$1
Query:/query $$1
Notice:/notice $$1 $$?="Type your notice below:"
-
Control
.Mode { noop $$?="What mode?" | /mode # $! $1 }
.Ignore:/ignore $$1 1
.Unignore:/ignore -r $$1 1
.Owner:/mode # + $str(q,$snick(#,0)) $replace($snicks,$chr(44),$chr(32))
.Deowner:/mode # - $+ $str(q,$snick(#,0)) $replace($snicks,$chr(44),$chr(32))
.Admin:/mode # +- $+ $str(h,$snick(#,0)) $replace($snicks,$chr(44),$chr(32))
.Deadmin:/mode # - $+ $str(a,$snick(#,0)) $replace($snicks,$chr(44),$chr(32))
.Op:/mode # + $+ $str(h,$snick(#,0)) $replace($snicks,$chr(44),$chr(32))
.Deop:/mode # - $+ $str(o,$snick(#,0)) $replace($snicks,$chr(44),$chr(32))
.Half-Op:/mode # + $+ $str(h,$snick(#,0)) $replace($snicks,$chr(44),$chr(32))
.Dehalf-op:/mode # - $+ $str(h,$snick(#,0)) $replace($snicks,$chr(44),$chr(32))
.Voice:/mode # + $+ $str(v,$snick(#,0)) $replace($snicks,$chr(44),$chr(32))
.Devoice:/mode # - $+ $str(v,$snick(#,0)) $replace($snicks,$chr(44),$chr(32))
.Kick:/kick # $$1
.Kick (why):/kick # $$1 $$?="Reason:"
.Ban:/ban $$1 2
.Ban, Kick:/ban $$1 2 | /timer 1 3 /kick # $$1
.Ban, Kick (why):/ban $$1 2 | /timer 1 3 /kick # $$1 $$?="Reason:"
CTCP
.Ping:/ctcp $$1 ping
.Time:/ctcp $$1 time
.Version:/ctcp $$1 version
DCC
.Send:/dcc send $$1
.Chat:/dcc chat $$1
-
Slap!:/me slaps $$1 around a bit with a large trout

Comments

Sign in to comment.
Jethro   -  Feb 28, 2011

If you're in doubt, test for yourself:

menu nicklist {
  Test
  .TestMe:echo -a $0
}

the code goes into your remote. You then select and highlight the nicknames from your nicklist. Let's say you've highlighted 4 people, the identifier $0 will return 4.

 Respond  
Jethro   -  Feb 28, 2011

Likely what? The $0 works the same for $snick(#,0) except it's shorter. This, in turn, saves your some meager bytes.

 Respond  
TMFKSOFT   -  Feb 28, 2011

Iikley then?

 Respond  
Jethro   -  Feb 28, 2011

Instead of using > $snick(#,0), you can just use

$0

Also, this is wrong:> .Mode:/mode $iif( $1 == "" ,$me,$$1) $$?="What mode?"It should have been:

 .Mode { noop $$?="What mode?" | /mode # $! $1 }
 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.