[READ-ONLY] Mirror of https://github.com/VibeDevelopers/Comet.
0

Configure Feed

Select the types of activity you want to include in your feed.

Implemented user mode +B for BOT - Added UMODE_BOT and IsBot() in include/client.h - Mapped user mode letter B in ircd/s_user.c - Added config name bot in ircd/newconf.c - Advertises BOT=B in ISUPPORT/005 via ircd/supported.c - WHOIS now sends numeric 335 <nick> :is a bot - Updated help/docs:

TwinUsers (Jul 17, 2026, 2:35 PM +0100) 49b87f86 ce93e1a9

+23 -1
+8
doc/oper-guide/umodes.rst
··· 8 8 output. All local “admin” privileges are independent of it, though 9 9 services packages may grant extra privileges to ``+a`` users. 10 10 11 + ``+B``, bot 12 + ------------ 13 + 14 + .. note:: This is a user umode, which anybody can set. It is not 15 + specific to operators. 16 + 17 + This umode marks the user as a bot. It is shown in ``WHOIS`` output. 18 + 11 19 ``+D``, deaf 12 20 ------------ 13 21
+1
doc/reference.conf
··· 1415 1415 1416 1416 /* usermodes configurable: a list of usermodes for the options below 1417 1417 * 1418 + * +B - bot - Marked as a bot in WHOIS 1418 1419 * +D - deaf - Don't see channel messages 1419 1420 * +i - invisible - Not shown in NAMES or WHO unless you share a 1420 1421 * a channel
+1
help/opers/umode
··· 6 6 7 7 USERMODE DESCRIPTION 8 8 ----------------------------------------------------------------- 9 + +B - Designates this client is a bot. 9 10 * +a - Is marked as a server admin in whois. 10 11 +g - Deny users not on your /ACCEPT list from messaging you and 11 12 inviting you to channels.
+1
help/users/umode
··· 5 5 6 6 USERMODE DESCRIPTION 7 7 ----------------------------------------------------------------- 8 + +B - Designates this client is a bot. 8 9 +o - Designates this client is an IRC Operator. 9 10 Use the /oper command to attain this. 10 11 +i - Designates this client 'invisible'.
+2
include/client.h
··· 449 449 #define UMODE_WALLOP 0x0002 /* send wallops to them */ 450 450 #define UMODE_OPERWALL 0x0004 /* Operwalls */ 451 451 #define UMODE_INVISIBLE 0x0008 /* makes user invisible */ 452 + #define UMODE_BOT 0x0020 /* marks user as a bot */ 452 453 #define UMODE_SERVICE 0x0040 453 454 #define UMODE_DEAF 0x0080 454 455 #define UMODE_NOFORWARD 0x0100 /* don't forward */ ··· 533 534 #define SendWallops(x) ((x)->umodes & UMODE_WALLOP) 534 535 #define SendServNotice(x) ((x)->umodes & UMODE_SERVNOTICE) 535 536 #define SendOperwall(x) ((x)->umodes & UMODE_OPERWALL) 537 + #define IsBot(x) ((x)->umodes & UMODE_BOT) 536 538 #define IsService(x) ((x)->umodes & UMODE_SERVICE) 537 539 #define IsDeaf(x) ((x)->umodes & UMODE_DEAF) 538 540 #define IsNoForward(x) ((x)->umodes & UMODE_NOFORWARD)
+1
include/messages.h
··· 107 107 #define NUMERIC_STR_331 ":%s 331 %s %s :No topic is set." 108 108 #define NUMERIC_STR_332 ":%s 332 %s %s :%s" 109 109 #define NUMERIC_STR_333 ":%s 333 %s %s %s %lld" 110 + #define NUMERIC_STR_335 "%s :is a bot" 110 111 #define NUMERIC_STR_338 "%s %s :actually using host" 111 112 #define NUMERIC_STR_341 ":%s 341 %s %s %s" 112 113 #define NUMERIC_STR_346 ":%s 346 %s %s %s %s %lu"
+1
include/numeric.h
··· 160 160 #define RPL_NOTOPIC 331 161 161 #define RPL_TOPIC 332 162 162 #define RPL_TOPICWHOTIME 333 163 + #define RPL_WHOISBOT 335 163 164 #define RPL_WHOISACTUALLY 338 164 165 165 166 #define RPL_INVITING 341
+1
ircd/newconf.c
··· 320 320 321 321 /* *INDENT-OFF* */ 322 322 static struct mode_table umode_table[] = { 323 + {"bot", UMODE_BOT }, 323 324 {"deaf", UMODE_DEAF }, 324 325 {"invisible", UMODE_INVISIBLE }, 325 326 {"noforward", UMODE_NOFORWARD },
+1 -1
ircd/s_user.c
··· 65 65 /* 0x30 */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* 0x3F */ 66 66 0, /* @ */ 67 67 0, /* A */ 68 - 0, /* B */ 68 + UMODE_BOT, /* B */ 69 69 0, /* C */ 70 70 UMODE_DEAF, /* D */ 71 71 0, /* E */
+6
modules/m_whois.c
··· 330 330 target_p->name, s); 331 331 } 332 332 333 + if(IsBot(target_p)) 334 + { 335 + sendto_one_numeric(source_p, RPL_WHOISBOT, form_str(RPL_WHOISBOT), 336 + target_p->name); 337 + } 338 + 333 339 if(IsSecureClient(target_p)) 334 340 { 335 341 char cbuf[256] = "is using a secure connection";