Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # znc-aka: A ZNC module to track users
- # Copyright (C) 2016 Evan Magaliff
- #
- # This program is free software; you can redistribute it and/or modify
- # it under the terms of the GNU General Public License as published by
- # the Free Software Foundation; either version 2 of the License, or
- # (at your option) any later version.
- #
- # This program is distributed in the hope that it will be useful,
- # but WITHOUT ANY WARRANTY; without even the implied warranty of
- # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- # GNU General Public License for more details.
- #
- # You should have received a copy of the GNU General Public License along
- # with this program; if not, write to the Free Software Foundation, Inc.,
- # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
- # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
- # Authors: Evan (MuffinMedic), Aww (AwwCookies) #
- # Contributors: See CHANGELOG for specific contributions by users #
- # Desc: A ZNC module to track users #
- # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
- version = '2.0.4b'
- updated = "December 28, 2016"
- import znc
- import os
- import datetime
- import time
- import re
- import sqlite3
- import requests
- class aka(znc.Module):
- module_types = [znc.CModInfo.UserModule]
- description = "Tracks users, allowing tracing and history viewing of nicks, hosts, and channels"
- wiki_page = "aka"
- def OnLoad(self, args, message):
- self.USER = self.GetUser().GetUserName()
- self.db_setup()
- return True
- def OnJoin(self, user, channel):
- self.process_user(self.GetNetwork().GetName(), user.GetNick(), user.GetIdent(), user.GetHost(), channel.GetName())
- def OnNick(self, user, new_nick, channels):
- for chan in channels:
- self.process_user(self.GetNetwork().GetName(), new_nick, user.GetIdent(), user.GetHost(), chan.GetName())
- def OnPrivMsg(self, user, message):
- self.process_seen(self.GetNetwork().GetName(), user.GetNick(), user.GetIdent(), user.GetHost(), 'PRIVMSG', message)
- def OnChanMsg(self, user, channel, message):
- self.process_seen(self.GetNetwork().GetName(), user.GetNick(), user.GetIdent(), user.GetHost(), channel.GetName(), message)
- def OnChanAction(self, user, channel, message):
- message = "* " + str(message).replace("'","''")
- self.process_seen(self.GetNetwork().GetName(), user.GetNick(), user.GetIdent(), user.GetHost(), channel.GetName(), message)
- def OnUserJoin(self, channel, key):
- self.PutIRC("WHO %s" % channel)
- def process_user(self, network, nick, ident, host, channel):
- self.cur.execute("INSERT OR IGNORE INTO users (network, nick, ident, host, channel, time) VALUES (?, ?, ?, ?, ?, strftime('%s', 'now'));", (network.lower(), nick.lower(), ident.lower(), host.lower(), channel.lower()))
- self.conn.commit()
- def process_seen(self, network, nick, ident, host, channel, message):
- message = str(message).replace("'","''")
- self.cur.execute("INSERT OR REPLACE INTO users (network, nick, ident, host, channel, message, time) VALUES (?, ?, ?, ?, ?, ?, strftime('%s', 'now'));", (network.lower(), nick.lower(), ident.lower(), host.lower(), channel.lower(), message))
- self.conn.commit()
- def cmd_process(self, scope):
- self.PutModule("Processing {}.".format(scope))
- if scope == 'all':
- nets = self.GetUser().GetNetworks()
- for net in nets:
- chans = net.GetChans()
- for chan in chans:
- nicks = chan.GetNicks()
- for nick in nicks.items():
- self.process_user(net.GetName(), nick[1].GetNick(), nick[1].GetIdent(), nick[1].GetHost(), chan.GetName())
- elif scope == 'network':
- chans = self.GetNetwork().GetChans()
- for chan in chans:
- nicks = chan.GetNicks()
- for nick in nicks.items():
- self.process_user(self.GetNetwork().GetName(), nick[1].GetNick(), nick[1].GetIdent(), nick[1].GetHost(), chan.GetName())
- else:
- nicks = self.GetNetwork().FindChan(scope).GetNicks()
- for nick in nicks.items():
- self.process_user(self.GetNetwork().GetName(), nick[1].GetNick(), nick[1].GetIdent(), nick[1].GetHost(), scope)
- self.PutModule("{} processed.".format(scope))
- def cmd_history(self, type, user, deep):
- user_query = self.generate_user_query(type, user)
- self.PutModule("Looking up \x02history\x02 for \x02{}\x02, please be patient...".format(user.lower()))
- self.cur.execute("SELECT DISTINCT nick, host FROM users WHERE network = '{0}' AND ({1});".format(self.GetNetwork().GetName().lower(), re.sub(r'([\[\]])', '[\\1]', user_query)))
- data = self.cur.fetchall()
- nicks = set(); idents = set(); hosts = set();
- if len(data) > 0:
- for row in data:
- nicks.add("nick = '" + row[0] + "' OR"); hosts.add("host = '" + row[1] + "' OR");
- self.cur.execute("SELECT DISTINCT nick, ident, host FROM users WHERE network = '{}' AND ({} {})".format(self.GetNetwork().GetName().lower(), ' '.join(nicks), ' '.join(hosts)[:-3]))
- data = self.cur.fetchall()
- nicks.clear(); hosts.clear()
- for row in data:
- if deep:
- nicks.add(row[0]); idents.add(row[1]); hosts.add(row[2]);
- self.cur.execute("SELECT DISTINCT nick, ident, host FROM users WHERE network = '{0}' AND (nick GLOB '{1}' OR ident GLOB '{2}' OR host GLOB '{3}');".format(self.GetNetwork().GetName().lower(), re.sub(r'([\[\]])', '[\\1]', row[0]), re.sub(r'([\[\]])', '[\\1]', row[1]), re.sub(r'([\[\]])', '[\\1]', row[2])))
- data_inner = self.cur.fetchall()
- for row_inner in data_inner:
- nicks.add(row_inner[0]); idents.add(row_inner[1]); hosts.add(row_inner[2]);
- else:
- nicks.add(row[0]); idents.add(row[1]); hosts.add(row[2]);
- self.display_results(nicks, idents, hosts)
- self.PutModule("History for {} \x02complete\x02.".format(user.lower()))
- else:
- self.PutModule("No history found for \x02{}\x02".format(user.lower()))
- def display_results(self, nicks, idents, hosts):
- nicks = sorted(list(nicks)); idents = sorted(list(idents)); hosts = sorted(list(hosts));
- size = 100
- index = 0
- while(index < len(nicks)):
- self.PutModule("\x02Nick(s):\x02 " + ', '.join(nicks[index:index+size]))
- index += size
- index = 0
- while(index < len(idents)):
- self.PutModule("\x02Ident(s):\x02 " + ', '.join(idents[index:index+size]))
- index += size
- index = 0
- while(index < len(hosts)):
- self.PutModule("\x02Host(s):\x02 " + ', '.join(hosts[index:index+size]))
- index += size
- def cmd_seen(self, type, user, channel):
- user_query = self.generate_user_query(type, user)
- if channel:
- self.cur.execute("SELECT nick, ident, host, channel, message, MAX(time) FROM (SELECT * from users WHERE message IS NOT NULL) WHERE network = '{0}' AND channel = '{1}' AND ({2});".format(self.GetNetwork().GetName().lower(), channel.lower(), re.sub(r'([\[\]])', '[\\1]', user_query)))
- else:
- self.cur.execute("SELECT nick, ident, host, channel, message, MAX(time) FROM (SELECT * from users WHERE message IS NOT NULL) WHERE network = '{0}' AND ({1});".format(self.GetNetwork().GetName().lower(), re.sub(r'([\[\]])', '[\\1]', user_query)))
- data = self.cur.fetchone()
- try:
- self.PutModule("\x02{}\x02 ({}@{}) was last seen in \x02{}\x02 at \x02{}\x02 saying \"\x02{}\x02\".".format(data[0], data[1], data[2],data[3], datetime.datetime.fromtimestamp(int(data[5])).strftime('%Y-%m-%d %H:%M:%S'), data[4]))
- except:
- if channel:
- self.PutModule("\x02{}\x02 has \x02\x034not\x03\x02 been seen in \x02{}\x02.".format(user.lower(), channel.lower()))
- else:
- self.PutModule("\x02{}\x02 has \x02\x034not\x03\x02 been seen.".format(user.lower()))
- def cmd_users(self, type, user):
- user_query = self.generate_user_query(type, user)
- self.cur.execute("SELECT DISTINCT nick, host, ident FROM users WHERE network = '{0}' AND ({1});".format(self.GetNetwork().GetName().lower(), re.sub(r'([\[\]])', '[\\1]', user_query)))
- data = self.cur.fetchall()
- chans = set()
- for row in data:
- chans.add(row[0])
- self.PutModule("\x02{}\x02 has been seen in \x02channels\x02: {}".format(user.lower(), ', '.join(sorted(chans))))
- def cmd_channels(self, type, users):
- chan_lists = []
- for user in users:
- user_query = self.generate_user_query(type, user)
- chans = []
- self.cur.execute("SELECT DISTINCT channel FROM users WHERE network = '{0}' AND ({1});".format(self.GetNetwork().GetName().lower(), re.sub(r'([\[\]])', '[\\1]', user_query)))
- data = self.cur.fetchall()
- for row in data:
- chans.append(row[0])
- chan_lists.append(chans)
- shared_chans = set(chan_lists[0])
- for chan in chan_lists[1:]:
- shared_chans.intersection_update(chan)
- self.PutModule("Common \x02channels\x02 for \x02{}:\x02 {}".format(', '.join(users), ', '.join(sorted(shared_chans))))
- def cmd_users(self, channels):
- nick_lists = []; ident_lists = []; host_lists = [];
- for channel in channels:
- nicks = []; idents = []; hosts = [];
- self.cur.execute("SELECT DISTINCT nick, ident, host FROM users WHERE network = '{}' AND channel = '{}';".format(self.GetNetwork().GetName().lower(), channel.lower()))
- data = self.cur.fetchall()
- for row in data:
- nicks.append(row[0]); idents.append(row[1]); hosts.append(row[2]);
- nick_lists.append(nicks); ident_lists.append(idents); host_lists.append(hosts);
- nicks = set(nick_lists[0]); idents = set(ident_lists[0]); hosts = set(host_lists[0]);
- for nick in nick_lists[1:]:
- nicks.intersection_update(nick)
- for ident in ident_lists[1:]:
- idents.intersection_update(ident)
- for host in host_lists[1:]:
- hosts.intersection_update(host)
- self.PutModule("Common \x02users\x02 for \x02{}:\x02".format(', '.join(channels)))
- self.display_results(nicks, idents, hosts)
- def cmd_compare_users(self, type, users):
- self.PutModule("Users compared.")
- def cmd_geo(self, type, user):
- user_query = self.generate_user_query(type, user)
- ipv4 = '(?:[0-9]{1,3}(\.|\-)){3}[0-9]{1,3}'
- ipv6 = '^((?:[0-9A-Fa-f]{1,4}))((?::[0-9A-Fa-f]{1,4}))*::((?:[0-9A-Fa-f]{1,4}))((?::[0-9A-Fa-f]{1,4}))*|((?:[0-9A-Fa-f]{1,4}))((?::[0-9A-Fa-f]{1,4})){7}$'
- rdns = '^(([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9])\.)*([A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9\-]*[A-Za-z0-9])$'
- if (re.search(ipv6, str(user)) or re.search(ipv4, str(user)) or (re.search(rdns, str(user)) and '.' in str(user))):
- host = user
- self.cur.execute("SELECT host, nick, ident FROM users WHERE network = '{0}' AND ({1}) ORDER BY time DESC;".format(self.GetNetwork().GetName().lower(), re.sub(r'([\[\]])', '[\\1]', user_query)))
- data = self.cur.fetchall()
- for row in data:
- if (re.search(ipv6, str(row[0])) or re.search(ipv4, str(row[0])) or (re.search(rdns, str(row[0])) and '.' in str(row[0]))):
- host = row[0]
- nick = row[1]
- ident = row[2]
- break
- try:
- if re.search(ipv4, str(host)):
- ip = re.sub('[^\w.]',".",((re.search(ipv4, str(host))).group(0)))
- elif re.search(ipv6, str(host)) or re.search(rdns, str(host)):
- ip = str(host)
- url = 'http://ip-api.com/json/' + ip + '?fields=country,regionName,city,lat,lon,timezone,mobile,proxy,query,reverse,status,message'
- loc = requests.get(url)
- loc_json = loc.json()
- if loc_json["status"] != "fail":
- try:
- user = "\x02{}\x02 ({}@{})".format(nick.lower(), ident.lower(), host.lower())
- except:
- user = "\x02{}\x02 (no matching user)".format(user.lower())
- self.PutModule("{} is located in \x02{}, {}, {}\x02 ({}, {}) / Timezone: {} / Proxy: {} / Mobile: {} / IP: {} / rDNS: {}".format(user, loc_json["city"], loc_json["regionName"], loc_json["country"], loc_json["lat"], loc_json["lon"], loc_json["timezone"], loc_json["proxy"], loc_json["mobile"], loc_json["query"], loc_json["reverse"]))
- else:
- self.PutModule("\x02\x034Unable to geolocate\x03\x02 user \x02{}\x02. (Reason: {})".format(user.lower(), loc_json["message"]))
- except:
- self.PutModule("\x02\x034No valid host\x03\x02 for user \x02{}\x02".format(user.lower()))
- def generate_user_query(self, type, user):
- if type:
- query = "{0} GLOB '{1}'".format(type, user.lower())
- else:
- query = "nick GLOB '{0}' OR ident GLOB '{0}' OR host GLOB '{0}'".format(user.lower())
- return query
- def cmd_stats(self):
- self.cur.execute("SELECT COUNT(DISTINCT nick), COUNT(DISTINCT ident), COUNT(DISTINCT host), COUNT(DISTINCT channel), COUNT(*) FROM users WHERE network = '{0}';".format(self.GetNetwork().GetName().lower()))
- data = self.cur.fetchone()
- self.PutModule("\x02Nick(s):\x02 {}".format(data[0]))
- self.PutModule("\x02Ident(s):\x02 {}".format(data[1]))
- self.PutModule("\x02Host(s):\x02 {}".format(data[2]))
- self.PutModule("\x02Channel(s):\x02 {}".format(data[3]))
- self.PutModule("\x02Size:\x02 {} MB".format(os.path.getsize(self.GetSavePath() + "/aka.db") >> 20))
- self.PutModule("\x02Total Records:\x02 {}".format(data[4]))
- def cmd_who(self, scope):
- if scope == 'all':
- nets = self.GetUser().GetNetworks()
- for net in nets:
- chans = net.GetChans()
- for chan in chans:
- self.PutIRC("WHO %s" % chan.GetName())
- elif scope == 'network':
- chans = self.GetNetwork().GetChans()
- for chan in chans:
- self.PutIRC("WHO %s" % chan.GetName())
- else:
- self.PutIRC("WHO %s" % scope)
- self.PutModule("{} WHO updates triggered. Please wait several minutes for ZNC to receive the updated data from the IRC server(s) and then run \x02process\x02 to add these updates to the database".format(scope))
- def cmd_about(self):
- self.PutModule("\x02aka\x02 (Also Known As / nickhistory) ZNC module by MuffinMedic (Evan)")
- self.PutModule("\x02Description:\x02 {}".format(self.description))
- self.PutModule("\x02Version:\x02 {}".format(version))
- self.PutModule("\x02Updated:\x02 {}".format(updated))
- self.PutModule("\x02Documenation:\x02 http://wiki.znc.in/Aka")
- self.PutModule("\x02Source:\x02 https://github.com/MuffinMedic/znc-aka")
- def cmd_rawquery(self, query):
- try:
- query = ' '.join(query)
- count = 0
- for row in self.cur.execute(query):
- self.PutModule(str(row))
- count += 1
- self.conn.commit()
- if self.cur.rowcount >= 0:
- self.PutModule('Query successful: %s rows affected' % self.cur.rowcount)
- else:
- self.PutModule('%s records retrieved' % count)
- except sqlite3.Error as e:
- self.PutModule('Error: %s' % e)
- def cmd_import(self, network, file):
- if os.path.exists(file):
- self.old_conn = sqlite3.connect(file)
- self.old_c = self.old_conn.cursor()
- try:
- self.old_c.execute("SELECT nick, identity, host, channel, message, processed_time, added FROM users")
- old = True
- except:
- self.old_c.execute("SELECT nick, ident, host, channel, message, time FROM users")
- old = False
- data = self.old_c.fetchall()
- count = 0
- self.PutModule("Importing {}. Please be patient...".format(file))
- if old:
- for row in data:
- if row[5]:
- self.cur.execute("INSERT OR IGNORE INTO users (network, nick, ident, host, channel, message, time) VALUES (LOWER(?), LOWER(?), LOWER(?), LOWER(?), LOWER(?), LOWER(?), LOWER(?));", (network, row[0], row[1], row[2], row[3], row[4], str(time.mktime((datetime.datetime.strptime(row[5].partition('.')[0], '%Y-%m-%d %H:%M:%S')).timetuple())).partition('.')[0]))
- elif row[6]:
- self.cur.execute("INSERT OR IGNORE INTO users (network, nick, ident, host, channel, message, time) VALUES (LOWER(?), LOWER(?), LOWER(?), LOWER(?), LOWER(?), LOWER(?), LOWER(?);", (network, row[0], row[1], row[2], row[3], row[4], str(time.mktime((datetime.datetime.strptime(row[6].partition('.')[0], '%Y-%m-%d %H:%M:%S')).timetuple())).partition('.')[0]))
- else:
- self.cur.execute("INSERT OR IGNORE INTO users (network, nick, ident, host, channel, message) VALUES (LOWER(?), LOWER(?), LOWER(?), LOWER(?), LOWER(?), LOWER(?));", (network, row[0], row[1], row[2], row[3], row[4]))
- count += 1
- else:
- for row in data:
- if row[5]:
- self.cur.execute("INSERT OR IGNORE INTO users (network, nick, ident, host, channel, message, time) VALUES (LOWER(?), LOWER(?), LOWER(?), LOWER(?), LOWER(?), LOWER(?), LOWER(?));", (network, row[0], row[1], row[2], row[3], row[4], row[5]))
- else:
- self.cur.execute("INSERT OR IGNORE INTO users (network, nick, ident, host, channel, message) VALUES (LOWER(?), LOWER(?), LOWER(?), LOWER(?), LOWER(?), LOWER(?));", (network, row[0], row[1], row[2], row[3], row[4]))
- count += 1
- self.conn.commit()
- self.PutModule("Database imported. {} records processed.".format(count))
- else:
- self.PutModule("File {} does not exist. Skipping.".format(file))
- def db_setup(self):
- self.conn = sqlite3.connect(self.GetSavePath() + "/aka.db")
- self.cur = self.conn.cursor()
- self.cur.execute("create table if not exists users (id INTEGER PRIMARY KEY, network TEXT, nick TEXT, ident TEXT, host TEXT, channel TEXT, message TEXT, time INTEGER, UNIQUE(network, nick, ident, host, channel));")
- self.conn.commit()
- if 'HAS_RUN' not in self.nv:
- nets = self.GetUser().GetNetworks()
- for net in nets:
- file = self.GetUser().GetUserPath() + "/networks/" + net.GetName() + "/moddata/aka/aka." + net.GetName() + ".db"
- self.cmd_import(net.GetName(), file)
- self.SetNV('HAS_RUN', "TRUE")
- def OnModCommand(self, command):
- line = command.lower()
- commands = line.split()
- cmds = ["all", "history", "users", "channels", "sharedchans", "sharedusers", "seen", "geo", "process", "who", "rawquery", "import", "stats", "about", "help", "migrate"]
- if commands[0] in cmds:
- if "--type=" in line:
- type = (line.split('=')[1]).lower()
- if type != 'nick' and type != 'host' and type != 'ident':
- self.PutModule("Valid types are \x02nick\x02, \x02ident\x02, and \x02host\x02.")
- return znc.HALT
- else:
- del commands[-1]
- else:
- type = None
- if commands[0] == "all":
- try:
- self.PutModule("Getting \x02all\x02 for \x02{}\x02.".format(commands[1]))
- self.cmd_history(type, commands[1], False)
- self.cmd_channels(type, commands[1:])
- self.cmd_seen(type, commands[1], None)
- self.cmd_geo(type, commands[1])
- self.PutModule("All \x02complete\x02.")
- except:
- self.PutModule("You must specify a user.")
- elif commands[0] == "history":
- try:
- if "--deep" in line:
- self.cmd_history(type, commands[1], True)
- else:
- self.cmd_history(type, commands[1], False)
- except:
- self.PutModule("You must specify a user.")
- elif commands[0] == "users" or commands[0] == "channels" or commands[0] == "sharedchans" or commands[0] == "sharedusers":
- if commands[0] == 'channels' or commands[0] == 'sharedchans':
- try:
- self.cmd_channels(type, commands[1:])
- except:
- self.PutModule("You must specify at least one user.")
- elif commands[0] == 'users' or commands[0] == 'sharedusers':
- try:
- self.cmd_users(commands[1:])
- except:
- self.PutModule("You must specify at least one channel.")
- elif commands[0] == "seen":
- try:
- try:
- self.cmd_seen(type, commands[1], commands[2])
- except:
- self.cmd_seen(type, commands[1], None)
- except:
- self.PutModule("You must specify a user and optional channel.")
- elif commands[0] == "geo":
- try:
- self.cmd_geo(type, commands[1])
- except:
- self.PutModule("You must specify a user, host, or IP address.")
- elif commands[0] == "process" or commands[0] == "who":
- try:
- if commands[0] == "process":
- self.cmd_process(commands[1])
- elif commands[0] == "who":
- self.cmd_who(commands[1])
- except:
- self.PutModule("Valid options: #channel, network, all")
- elif commands[0] == "rawquery":
- try:
- self.cmd_rawquery(commands[1:])
- except:
- self.PutModule("You must specify a query.")
- elif commands[0] == "import":
- self.cmd_import(commands[1], commands[2])
- '''
- try:
- self.cmd_import(commands[1], commands[2])
- except:
- self.PutModule("You must specify a network and file.")
- '''
- elif commands[0] == "stats":
- self.cmd_stats()
- elif commands[0] == "about":
- self.cmd_about()
- elif commands[0] == "help":
- self.cmd_help()
- else:
- self.PutModule("Invalid command. See \x02help\x02 for a list of available commands.")
- def cmd_help(self):
- help = znc.CTable(250)
- help.AddColumn("Command")
- help.AddColumn("Arguments")
- help.AddColumn("Description")
- help.AddRow()
- help.SetCell("Command", "all")
- help.SetCell("Arguments", "<user> [--type=type] [--deep]")
- help.SetCell("Description", "Get all information on a user (nick, ident, or host)")
- help.AddRow()
- help.SetCell("Command", "history")
- help.SetCell("Arguments", "<user> [--type=type]")
- help.SetCell("Description", "Show history for a user")
- help.AddRow()
- help.SetCell("Command", "users")
- help.SetCell("Arguments", "<#channel 1> [<#channel 2>] ... [<channel #>]")
- help.SetCell("Description", "Show common users between a list of channel(s)")
- help.AddRow()
- help.SetCell("Command", "channels")
- help.SetCell("Arguments", "<user 1> [<user 2>] ... [<user #>] [--type=type]")
- help.SetCell("Description", "Show common channels between a list of user(s) (nicks, idents, or hosts, including mixed)")
- help.AddRow()
- help.SetCell("Command", "seen")
- help.SetCell("Arguments", "<user> [<#channel>] [--type=type]")
- help.SetCell("Description", "Display last time user was seen speaking")
- help.AddRow()
- help.SetCell("Command", "geo")
- help.SetCell("Arguments", "<user> [--type=type]")
- help.SetCell("Description", "Geolocates user (nick, ident, host, IP, or domain)")
- help.AddRow()
- help.SetCell("Command", "who")
- help.SetCell("Arguments", "<scope>")
- help.SetCell("Description", "Update userdata on all users in the scope (#channel, network, or all)")
- help.AddRow()
- help.SetCell("Command", "process")
- help.SetCell("Arguments", "<scope>")
- help.SetCell("Description", "Add all current users in the scope (#channel, network, or all) to the database")
- help.AddRow()
- help.SetCell("Command", "rawquery")
- help.SetCell("Arguments", "<query>")
- help.SetCell("Description", "Run raw sqlite3 query and return results")
- help.SetCell("Command", "import")
- help.SetCell("Arguments", "<network> <file>")
- help.SetCell("Description", "Import an existing database")
- help.AddRow()
- help.SetCell("Command", "about")
- help.SetCell("Description", "Display information about aka")
- help.AddRow()
- help.SetCell("Command", "stats")
- help.SetCell("Description", "Print data stats for the current network")
- help.AddRow()
- help.SetCell("Command", "help")
- help.SetCell("Description", "Print help for using the module")
- help.AddRow()
- help.SetCell("Command", "NOTE")
- help.SetCell("Arguments", "User Types")
- help.SetCell("Description", "Valid user types are nick, ident, and host.")
- help.SetCell("Command", "NOTE")
- help.SetCell("Arguments", "Wildcard Searches")
- help.SetCell("Description", "<user> supports * and ? GLOB wildcard syntax (combinable at start, middle, and end).")
- self.PutModule(help)
Advertisement
Add Comment
Please, Sign In to add comment