Fix error in /amsg and /ame if applies to all active connections.
Merge pull request #426 from foldericon/patch-1

Fix error in /amsg and /ame if applies to all active connections.