Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3717057
D1390.id3547.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
671 B
Referenced Files
None
Subscribers
None
D1390.id3547.diff
View Options
diff --git a/Core.tcl b/Core.tcl
--- a/Core.tcl
+++ b/Core.tcl
@@ -735,6 +735,11 @@
### Handle / nick handling
###
+# Determines if a nick belongs to a bot
+proc isbot {nick} {
+ matchattr [nick2hand $nick] b
+}
+
proc resolve_nick {nickname} {
set resolved [whois $nickname 0]
diff --git a/Wearg/ServersLog.tcl b/Wearg/ServersLog.tcl
--- a/Wearg/ServersLog.tcl
+++ b/Wearg/ServersLog.tcl
@@ -6,6 +6,10 @@
bind pubm - "#* \[*\] *" pubm:log
proc pubm:log {nick uhost handle chan text} {
+ if {[isbot $nick]} {
+ return 0
+ }
+
regexp "^\\\[(.*)\\\] (.*)" $text match component entry
if {[is_known_component $component]} {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Nov 6, 23:56 (20 h, 37 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2232418
Default Alt Text
D1390.id3547.diff (671 B)
Attached To
Mode
D1390: Ensure the servers log emitter isn't a bot
Attached
Detach File
Event Timeline
Log In to Comment