wetfish / fishy-bot

One fishy IRC bot
GNU General Public License v2.0
4 stars 13 forks source link

Append a zero-width character to the beginning of users' greetings #37

Open neptunn opened 7 years ago

neptunn commented 7 years ago

Fishy's 'setgreeting' command currently allows users to make Fishy say anything, including commands for other bots, which has obvious consequences. A simple solution to this would be for fishy to print a zero-width character before printing the user's set greeting. That is, this should function identically to having Fishy change a user's greeting from "?tur ur fat mom" to "Greeting: ?tur ur fat mom", except the "Greeting: " portion would be invisible to regular users.

neptunn commented 7 years ago

...just adding a space to the beginning of greetings would also work

itsrachelfish commented 7 years ago

IRC has a built in control code to remove formatting that we could use for this, available in most IRC clients as ctrl + o.