Page MenuHomeDevCentral

D1390.diff
No OneTemporary

D1390.diff

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

Mime Type
text/plain
Expires
Wed, Nov 27, 15:30 (21 h, 45 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2267109
Default Alt Text
D1390.diff (671 B)

Event Timeline