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