# Path: txircd/modbase.py
# class Command(object):
#     def hook(self, base):
#         self.ircd = base
#         return self
#     def onUse(self, user, data):
#         pass
#     def processParams(self, user, params):
#         return {
#             "user": user,
#             "params": params
#         }
#     def updateActivity(self, user):
#         user.lastactivity = now()


from twisted.words.protocols import irc
from txircd.modbase import Command

class InfoCommand(Command):
    def onUse(self, user, data):
        user.sendMessage(irc.RPL_INFO, ":{}".format(self.ircd.version))
        user.sendMessage(irc.RPL_INFO, ":Developed by the Desert Bus for Hope Engineering Team")
        user.sendMessage(irc.RPL_INFO, ": -")

# Path: txircd/modbase.py
# class Command(object):
#     def hook(self, base):
#         self.ircd = base
#         return self
#     def onUse(self, user, data):
#         pass
#     def processParams(self, user, params):
#         return {
#             "user": user,
#             "params": params
#         }
#     def updateActivity(self, user):
#         user.lastactivity = now()


# Path: txircd/modules/cmd_info.py
from twisted.words.protocols import irc
from txircd.modbase import Command


class InfoCommand(Command):
    def onUse(self, user, data):
        user.sendMessage(irc.RPL_INFO, ":{}".format(self.ircd.version))
        user.sendMessage(irc.RPL_INFO, ":Developed by the Desert Bus for Hope Engineering Team")
        user.sendMessage(irc.RPL_INFO, ": -")

        user.sendMessage(irc.RPL_INFO, ":Original txircd by Fugiman, ElementalAlchemist, and ojii")