Add some preparations for fun. - annna - Annna the nice friendly bot.
HTML git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/annna/
DIR Log
DIR Files
DIR Refs
DIR Tags
DIR README
---
DIR commit dbee9d4fd067ec2fef8d0496c35ec9bb9cf4e757
DIR parent 46c6be944970232f3deb7c4e5c04598085476d15
HTML Author: Annna Robert-Houdin <annna@bitreich.org>
Date: Sat, 4 Jul 2026 10:45:01 +0200
Add some preparations for fun.
Diffstat:
M annna-start-server | 154 +++++++++++++++++++++++++++++--
1 file changed, 146 insertions(+), 8 deletions(-)
---
DIR diff --git a/annna-start-server b/annna-start-server
@@ -29,30 +29,168 @@ do
export IRC_NOTICE_TEXT=""
case "${IRC_CMD}" in
- "433") exit 1;; # Nickname in use.
"001") annna-join-channels;; # Welcome.
"002");; # Host
"003");; # Server started
"004");; # server software
"005");; # network key=value
+
+ "200");; # tracelink
+ "201");; # trace connection
+ "202");; # trace handshake
+ "203");; # trace unknown
+ "204");; # trace operator
+ "205");; # trace user
+ "206");; # trace server
+ "208");; # trace new type
+ "209");; # trace class
+ "211");; # stats link info
+ "212");; # stats commands
+ "213");; # stats cline
+ "214");; # stats nline
+ "215");; # stats iline
+ "216");; # stats kline
+ "217");; # stats qline
+ "218");; # stats yline
+ "219");; # end of stats
+ "221");; # umodes
+ "231");; # service info
+ "232");; # end of services
+ "233");; # service
+ "234");; # service list
+ "235");; # service list end
+ "241");; # stats line
+ "242");; # stats uptime
+ "243");; # stats oline
+ "244");; # stats hline
"251");; # users, services, servers
"252");; # operators
"254");; # channels
"255");; # users, services, servers
+ "256");; # admin me
+ "257");; # admin loc1
+ "258");; # admin loc2
+ "259");; # admin email
+ "261");; # trace log
"265");; # local users
"266");; # global users
"250");; # connection count
- "375");; # motd begin
+
+ "300");; # dummy
+ "301");; # away answer
+ "302");; # userhost answer
+ "303");; # ison answer
+ "305");; # unaway
+ "306");; # marked as away
+ "311");; # whois user
+ "312");; # whois server
+ "313");; # whois operator
+ "314");; # whowas answer
+ "315");; # end of who
+ "316");; # whois chanop
+ "317");; # whoise idle
+ "318");; # end of whois
+ "319");; # whois channel
+ "321");; # channel user list start
+ "322");; # channel user
+ "323");; # list end
+ "324");; # channel modes
+ "331");; # no topic in channel set
+ "332");; # channel topic
+ "333");; # channel ctime
+ "341");; # inviting successful
+ "342");; # summoning succesful
+ "351");; # version answer
+ "352");; # who answer
+ "353");; # /names
+ "361");; # kill done
+ "362");; # closing
+ "363");; # closing ended
+ "364");; # links
+ "365");; # end of links
+ "366");; # end of /names
+ "367");; # ban list
+ "368");; # end of ban list
+ "369");; # end of whowas
+ "371");; # info line
"372");; # motd + connection info
+ "373");; # info start
+ "374");; # end of info
+ "375");; # motd begin
"376");; # motd end
+ "381");; # you are oper
+ "382");; # rehashing
+ "384");; # my port is
+ "391");; # time answer
+ "392");; # users start
+ "393");; # users line
+ "394");; # end of users
+ "395");; # no users
"396");; # displayed hostname
+
+ "401");; # no such nick
+ "402");; # no such server
+ "403");; # no such channel
+ "404");; # cannot send to channel
+ "405");; # joined too many channels
+ "406");; # whowas: no such nickname
+ "407");; # too many targets for privmsg
+ "409");; # ping: no origin specified
+ "411");; # no recipient given
+ "412");; # no text to send
+ "413");; # no toplevel domain specified
+ "414");; # wildcard in toplevel domain
+ "421");; # unknown command
+ "422");; # no motd file
+ "423");; # no admin info
+ "424");; # file error
+ "431");; # no nickname given
+ "432");; # erroneus nickname
+ "433") exit 1;; # Nickname in use.
+ "436");; # nickname collision
+ "441");; # user not on channel
+ "442");; # not on channel
+ "443");; # invite: user already on channel
+ "444");; # summon: user not logged in
+ "445");; # summon disabled
+ "446");; # users: disabled
+ "451");; # you are not registered
+ "461");; # need more params
+ "462");; # already registered
+ "463");; # your host is not allowed
+ "464");; # passwod incorrect
+ "465");; # you are banned
+ "466");; # you will be banned
+ "467");; # channel key set
+ "471");; # cannot join channel (+l)
+ "472");; # unknown mode char
+ "473");; # cannot join channel (+i)
+ "474");; # cannot join channel (+b)
+ "475");; # cannot join channel (+k)
+ "476");; # bad channel mask
+ "481");; # permission denied
+ "482");; # you are not op
+ "483");; # not allowed to kill server
+ "491");; # no o-lines for host
+ "492");; # no service host
+
+ "501");; # unknown mode flag
+ "502");; # cannot change mode for other users
+
"PING");;
- "332");; # channel title
- "333");; # channel ctime
- "353");; # /names
- "366");; # end of /names
- "NICK");; # /nick
- "PONG");; # /ping
+ "NICK");;
+ "PONG");;
+ "QUIT");;
+ "KICK");;
+ "MODE");;
+ "INVITE");;
+ "TOPIC");;
+ "MODE");;
+ "VERSION");;
+ "STATS");;
+ "LINKS");;
+ "INFO");;
+ "WALLOPS");;
"PART")
export IRC_CHANNEL="$(printf "%s\n" "${servermsg}" \
| cut -d' ' -f 4)"