There is nothing that can be coded. If you have IRCops status on the network, then you'll get the notification message automatically. If you don't then the information is not available.