Commit 16f8ca3
committed
irc: use deque for "stack" of recent messages
Doesn't save any code lines, but does make the process of updating what
has been said recently look a bit less voodoo-y. I very much prefer
declaring how long the list of "messages" should be where it's
initialized instead of pruning it later.1 parent 6101e3a commit 16f8ca3
1 file changed
+4
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
| |||
798 | 799 | | |
799 | 800 | | |
800 | 801 | | |
801 | | - | |
| 802 | + | |
802 | 803 | | |
803 | 804 | | |
804 | 805 | | |
| |||
846 | 847 | | |
847 | 848 | | |
848 | 849 | | |
849 | | - | |
| 850 | + | |
850 | 851 | | |
851 | 852 | | |
852 | 853 | | |
| |||
858 | 859 | | |
859 | 860 | | |
860 | 861 | | |
861 | | - | |
| 862 | + | |
862 | 863 | | |
863 | 864 | | |
864 | 865 | | |
865 | | - | |
866 | 866 | | |
867 | 867 | | |
868 | 868 | | |
| |||
0 commit comments