read about ON TEXT events. There are examples in there that you can use to make similar things happen. These scripts go into your Remotes (Alt+R -> Remotes) section of the script editor.
- argv[0] on EFnet #mIRC - "Life is a pointer to an integer without a cast"