Fixed szt's incompetence
This commit is contained in:
		@@ -329,11 +329,11 @@ class Useless(DatabasePlugin):
 | 
			
		||||
    def halfwidth(self, mask: IrcString, target: IrcString, args: DocOptDict):
 | 
			
		||||
        """Turns UPPERCASE words into halfwidth characters
 | 
			
		||||
 | 
			
		||||
        %%halfwidth <text>
 | 
			
		||||
        %%halfwidth <text>...
 | 
			
		||||
        """
 | 
			
		||||
        def halfwidth_replace(match):
 | 
			
		||||
            return "".join(chr(0xFF20+(ord(c)-64)) for c in match.group(0))
 | 
			
		||||
        return "[HALFWIDTH] {}".format(re.sub(r'(?:\b)[A-Z]+(?:\b)', halfwidth_replace, args.get('<word>')))
 | 
			
		||||
            return ''.join(chr(0xFF20 + (ord(c) - 64)) for c in match.group(0))
 | 
			
		||||
        return '[HALFWIDTH] {}'.format(re.sub(r'(?:\b)[A-Z]+(?:\b)', halfwidth_replace, ' '.join(args['<text>'])))
 | 
			
		||||
 | 
			
		||||
    @command
 | 
			
		||||
    def asshole(self, mask: IrcString, target: IrcString, args: DocOptDict):
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user