}
proc onread {args} {
- global sock nick calling_nick
+ global sock nick calling_nick errorInfo errorCode
if {[gets $sock line] == -1} { set terminate 1; return }
regsub -all "\[^ -\176\240-\376\]" $line ? line
set org $line
+
+ set ei $errorInfo
+ set ec $errorCode
catch { unset calling_nick }
+ set errorInfo $ei
+ set errorCode $ec
+
if {[regexp -nocase {^:([^ ]+) (.*)} $line dummy prefix remain]} {
set line $remain
if {[regexp {^([^!]+)!} $prefix dummy maybenick]} {
Configures the list of who may use the `ops' command. You must be
on the oplist yourself to do this. If you op me on a channel I'll
automatically add you to the oplist if you have identified yourself.
+ If you make the channel op list empty I'll forget about the channel.
(Not yet implemented!)
!identify
Identification, for example with /blight-id, is actually done with
`identpass', which feeds the md5sum of the password to `userv
<username> irc-identpass <nick>'. That must exit 0 if all is well.
+ By default this checks the md5sum against ~/.userv/irc-pass-md5.
!invite
If you invite me to a channel I'll join it.