-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
61 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package require hexchat | ||
|
||
package require dasbrain::chanopt | ||
package require dasbrain::channels | ||
|
||
package provide dasbrain::autocycle 1.0 | ||
|
||
namespace eval ::dasbrain::autocycle { | ||
copt register cycle flag 0 | ||
::dasbrain::channels::on-event postremove ::dasbrain::autocycle::POSTREMOVE | ||
} | ||
|
||
proc ::dasbrain::autocycle::POSTREMOVE {chan args} { | ||
if {[dict exists $::dasbrain::channels::channels [::hexchat::prefs id] $chan] && | ||
[dict size [dict get $::dasbrain::channels::channels [::hexchat::prefs id] $chan users]] <= 1 && | ||
![::dasbrain::channels::meop $chan] && | ||
[ccopt get cycle]} { | ||
::hexchat::command "CYCLE $chan" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,10 +6,10 @@ package require dasbrain::need | |
package provide dasbrain::quakenet 1.0 | ||
|
||
namespace eval ::dasbrain::quakenet { | ||
::dasbrain::chanopt::register cs-invite flag 0 | ||
::dasbrain::chanopt::register cs-unban flag 0 | ||
::dasbrain::chanopt::register cs-voice flag 0 | ||
::dasbrain::chanopt::register cs-op flag 0 | ||
::dasbrain::chanopt::register q-invite flag 0 | ||
::dasbrain::chanopt::register q-unban flag 0 | ||
::dasbrain::chanopt::register q-voice flag 0 | ||
::dasbrain::chanopt::register q-op flag 0 | ||
|
||
::dasbrain::need::handler ::dasbrain::quakenet::need | ||
} | ||
|
@@ -19,6 +19,9 @@ proc ::dasbrain::quakenet::need {what channel} { | |
set what invite | ||
} | ||
if {[copt get [::hexchat::getinfo network] $channel q-$what] eq {1}} { | ||
if {$what eq {unban}} { | ||
set what unbanme | ||
} | ||
::hexchat::command "RAW PRIVMSG [email protected] :$what $channel" | ||
if {$what eq {invite}} { | ||
::dasbrain::invitejoin::addjoin $channel | ||
|