Converted last few link msg nums to if-else

When testing the num of the link_message, an if-else can be used
throughout - thus speeding things up: no need to test for 100 if 305
was found, etc. Also isolated number test in case of Mistress-ID
settings.