Calling /mods closes any irc connection

Getting expected results on IRC here

/mods
09:30 -!- Irssi: Unknown command: mods

And using the IRC safe equivalent of .mods results in nothing, coz I haven’t changed my IRSSI to capture the response properly.

09:31 <@barrycarlyon> !revisemods
09:31 <@fuzzbuttbot> Hey barrycarlyon I collected 18 mods

And !revisemods which instructs my bot to perform .mods and parse the response working fine also.