Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- alias channels {
- var %x $chan(0)
- echo -a 4I am on5 %x 4channels:
- :x
- echo -a 4Channel number:5 %x 4is:5 $chan(%x) $+ 4. Users:5 $nick($chan(%x),0) $+ 4.
- dec %x
- if (%x == 0) {
- echo -a 4End of the list of channels.
- halt
- }
- goto x
- }
- alias users {
- if ($chan == $null) {
- echo -a 7[14DEBUG7]5 using this command outside a channel would cause your client to crash, so this has been disabled.
- halt
- }
- var %x $nick($chan,0)
- echo -a 4There are:5 %x 4users on5 $chan $+ 4.
- :y
- echo -a 4User number:5 %x 4is:5 $nick($chan,%x) $+ 4.
- dec %x
- if (%x == 0) {
- echo -a 4End of the list of users on5 $chan $+ 4.
- halt
- }
- goto y
- }
Add Comment
Please, Sign In to add comment