1 # irgramd: IRC-Telegram gateway 2 # irc_replies.py: IRC reply and error codes 3 # 4 # Copyright (c) 2020-2022 E. Bosch <presidev@AT@gmail.com> 5 # 6 # Use of this source code is governed by a MIT style license that 7 # can be found in the LICENSE file included in this project. 8 9 irc_codes = \ 10 { 11 'RPL_WELCOME': ('001', ':Welcome to the irgramd gateway, {}'), 12 'RPL_YOURHOST': ('002', ':Your host is {}, running version irgramd-{}'), 13 'RPL_CREATED': ('003', ':This server was created {}'), 14 'RPL_MYINFO': ('004', '{} irgramd-{} oS nt'), 15 'RPL_ISUPPORT': ('005', 'CASEMAPPING=ascii CHANLIMIT=#&+: CHANTYPES=&#+ CHANMODES=,,,nt CHANNELLEN={} NICKLEN={} SAFELIST :are supported by this server'), 16 'RPL_UMODEIS': ('221', ':{}'), 17 'RPL_USERHOST': ('302', ':{}'), 18 'RPL_WHOISSERVICE': ('310', '{} :is an irgramd service'), 19 'RPL_WHOISUSER': ('311', '{} {} {} * :{}'), 20 'RPL_WHOISSERVER': ('312', '{} {} :irgramd gateway'), 21 'RPL_WHOISOPERATOR': ('313', '{} :is an irgramd operator'), 22 'RPL_ENDOFWHO': ('315', '{} :End of WHO list'), 23 'RPL_WHOISIDLE': ('317', '{} {} :seconds idle'), 24 'RPL_ENDOFWHOIS': ('318', '{} :End of WHOIS command'), 25 'RPL_WHOISCHANNELS': ('319', '{} :{}'), 26 'RPL_LISTSTART': ('321', 'Channel :Users Name'), 27 'RPL_LIST': ('322', '{} {} :{}'), 28 'RPL_LISTEND': ('323', ':End of /LIST'), 29 'RPL_CHANNELMODEIS': ('324', '{} {} {}'), 30 'RPL_CREATIONTIME': ('329', '{} {}'), 31 'RPL_WHOISACCOUNT': ('330', '{} {} :has Telegram account'), 32 'RPL_TOPIC': ('332', '{} :{}'), 33 'RPL_TOPICWHOTIME': ('333', '{} {} {}'), 34 'RPL_WHOISBOT': ('335', '{} :is a Telegram bot'), 35 'RPL_VERSION': ('351', 'irgramd-{} {} :IRC to Telegram gateway'), 36 'RPL_WHOREPLY': ('352', '{} {} {} {} {} H{} :0 {}'), 37 'RPL_NAMREPLY': ('353', '{} {} :{}'), 38 'RPL_ENDOFNAMES': ('366', '{} :End of NAME reply'), 39 'RPL_ENDOFBANLIST': ('368', '{} :End of channel ban list'), 40 'RPL_MOTDSTART': ('375', ':- {} Message of the day - '), 41 'RPL_MOTD': ('372', ':- {}'), 42 'RPL_ENDOFMOTD': ('376', 'End of MOTD command'), 43 'ERR_NOSUCHNICK': ('401', '{} :Nick not found or available'), 44 'ERR_NOSUCHSERVER': ('402', '{} :Target not found'), 45 'ERR_NOSUCHCHANNEL': ('403', '{} :Channel not found'), 46 'ERR_CANNOTSENDTOCHAN': ('404', 'Cannot send to channel'), 47 'ERR_TOOMANYCHANNELS': ('405', 'Too many channels'), 48 'ERR_WASNOSUCHNICK': ('406', 'There was no such nick'), 49 'ERR_TOOMANYTARGETS': ('407', 'Too many targets'), 50 'ERR_NOORIGIN': ('409', 'No origin present'), 51 'ERR_NORECIPIENT': ('411', 'No recipient'), 52 'ERR_NOTEXTTOSEND': ('412', 'No text to send'), 53 'ERR_NOTOPLEVEL': ('413', 'No top level domain'), 54 'ERR_WILDTOPLEVEL': ('414', 'Wild top level domain'), 55 'ERR_UNKNOWNCOMMAND': ('421', 'Unknown command'), 56 'ERR_NOMOTD': ('422', 'No MOTD'), 57 'ERR_NOADMININFO': ('423', 'No admin info'), 58 'ERR_FILEERROR': ('424', 'File error'), 59 'ERR_NONICKNAMEGIVEN': ('431', 'No nickname given'), 60 'ERR_ERRONEUSNICKNAME': ('432', '{} :Erroneus nickname'), 61 'ERR_NICKNAMEINUSE': ('433', '{} :Nickname in use'), 62 'ERR_NICKCOLLISION': ('436', 'Nickname collision'), 63 'ERR_USERNOTINCHANNEL': ('441', 'User not in channel'), 64 'ERR_NOTONCHANNEL': ('442', '{} :Not on channel'), 65 'ERR_USERONCHANNEL': ('443', 'User on channel'), 66 'ERR_NOLOGIN': ('444', 'No login'), 67 'ERR_SUMMONDISABLED': ('445', 'Summon disabled'), 68 'ERR_USERSDISABLED': ('446', 'Users disabled'), 69 'ERR_NOTREGISTERED': ('451', ':Not registered'), 70 'ERR_NEEDMOREPARAMS': ('461', 'Need more params'), 71 'ERR_ALREADYREGISTRED': ('462', 'Already registered'), 72 'ERR_NOPERMFORHOST': ('463', 'Insufficient permissions for host'), 73 'ERR_PASSWDMISMATCH': ('464', 'Password mismatch'), 74 'ERR_YOUREBANNEDCREEP': ('465', 'You\'re banned, creep'), 75 'ERR_KEYSET': ('467', 'Key set'), 76 'ERR_CHANNELISFULL': ('471', 'Channel is full'), 77 'ERR_UNKNOWNMODE': ('472', 'Unknown mode'), 78 'ERR_INVITEONLYCHAN': ('473', 'Invite only channel'), 79 'ERR_BANNEDFROMCHAN': ('474', 'Banned from channel'), 80 'ERR_BADCHANNELKEY': ('475', 'Bad channel key'), 81 'ERR_NOPRIVILEGES': ('481', 'No privileges'), 82 'ERR_CHANOPRIVSNEEDED': ('482', 'Channel +o privileges needed'), 83 'ERR_CANTKILLSERVER': ('483', 'Cannot kill server'), 84 'ERR_NOOPERHOST': ('491', 'No operator host'), 85 'ERR_UMODEUNKNOWNFLAG': ('501', 'User mode unknown flag'), 86 'ERR_USERSDONTMATCH': ('502', 'Users don\'t match'), 87 'RPL_WHOISSECURE': ('671', '{} :is using a secure {} connection with {}'), 88 }