Page MenuHomeDevCentral

D1390.id3548.diff
No OneTemporary

D1390.id3548.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
Thu, Nov 7, 00:02 (21 h, 14 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2232418
Default Alt Text
D1390.id3548.diff (671 B)

Event Timeline