old_contents: # -*- coding: utf-8 -*-
  from irc3.plugins.command import command
  import irc3
  
  
  @irc3.plugin
  class Plugin(object):
  
      def __init__(self, bot):
          self.bot = bot
  
      @irc3.event(irc3.rfc.JOIN)
      def say_hi(self, mask, channel):
          """Say hi when someone join a channel"""
          if mask.nick != self.bot.nick:
              self.bot.privmsg(channel, 'Hi %s!' % mask.nick)
          else:
              self.bot.privmsg(channel, 'Hi %s!')
  
      @command(permission='view')
      def echo(self, mask, target, args):
          """Echo
  
              %%echo <message>...
          """
          yield ' '.join(args['<message>'])
  
new_contents: # -*- coding: utf-8 -*-
  from irc3.plugins.command import command
  import irc3
  
  
  @irc3.plugin
  class Plugin(object):
  
      def __init__(self, bot):
          self.bot = bot
  
      @irc3.event(irc3.rfc.JOIN)
      def say_hi(self, mask, channel):
          """Say hi when someone join a channel"""
          if mask.nick != self.bot.nick:
              self.bot.privmsg(channel, 'Hi %s!' % mask.nick)
          else:
              self.bot.privmsg(channel, 'Hi!')
  
      @command(permission='view')
      def echo(self, mask, target, args):
          """Echo
  
              %%echo <message>...
          """
          yield ' '.join(args['<message>'])
  
subject: Remove the unneeded %s from the template plugin