Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- alias amsg {
- /*
- Make sure you are connected to a server and
- that the command isn't used as an identifier
- */
- if ($server) {
- if (!$isid) {
- ; Get the total amount of channels you are in on this server
- var %x = $comchan($me,0)
- /*
- List of all unwanted amsg channels:
- You can add other channels if you want,
- has to be separated by a space
- */
- var %y = #cservice #Fatalzone
- ; Loop through them
- while (%x) {
- ; If the channel in this iteration is not one of those in the $istok, msg the input
- if (!$istok(%y, $comchan($me,%x), 32)) {
- msg $comchan($me, %x) $1-
- }
- dec %x
- }
- }
- else echo $color(info) -a * /amsg: Improper usage; Command Only!
- }
- else echo $color(info) -a * /amsg: not connected to server
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement