potato 0.0.10 → 0.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/potato/irc/client.rb +1 -0
- data/lib/potato/irc/events.rb +1 -1
- data/lib/potato/irc/packet.rb +4 -1
- data/lib/potato/version.rb +1 -1
- data/lib/potato.rb +9 -8
- metadata +2 -2
data/lib/potato/irc/client.rb
CHANGED
@@ -308,6 +308,7 @@ Type /pass yourpassword to authenticate.
|
|
308
308
|
def move_user room, user, privclass, by
|
309
309
|
chan_notice room, "#{user} has been moved to \x16#{privclass}\x0F by #{by}"
|
310
310
|
us = @users[room].find{|x|x.username == user}
|
311
|
+
return if us.nil? # the user is not in this room
|
311
312
|
mode = ""
|
312
313
|
count = 0
|
313
314
|
unless us.symbol == sym(@client.privclasses[room][privclass])
|
data/lib/potato/irc/events.rb
CHANGED
data/lib/potato/irc/packet.rb
CHANGED
@@ -22,7 +22,10 @@ module Potato
|
|
22
22
|
str = str.force_encoding("UTF-8") if str.respond_to?(:force_encoding)
|
23
23
|
@raw = str
|
24
24
|
if str.include?(" :")
|
25
|
-
|
25
|
+
pieces = str.split(" ", str[0...str.index(" :")+1].count(" ") + 1)
|
26
|
+
@cmd = pieces.shift
|
27
|
+
@content = pieces.pop
|
28
|
+
@args = pieces
|
26
29
|
@content.slice!(0)
|
27
30
|
else
|
28
31
|
@cmd, *@args = str.split(" ")
|
data/lib/potato/version.rb
CHANGED
data/lib/potato.rb
CHANGED
@@ -1,11 +1,12 @@
|
|
1
|
-
require
|
2
|
-
require
|
3
|
-
require
|
4
|
-
require
|
5
|
-
require
|
6
|
-
require
|
7
|
-
require
|
8
|
-
require
|
1
|
+
require 'socket'
|
2
|
+
require 'ostruct'
|
3
|
+
require 'optparse'
|
4
|
+
require 'timeout'
|
5
|
+
require 'iconv'
|
6
|
+
require 'cgi'
|
7
|
+
require 'open-uri'
|
8
|
+
require 'net/http'
|
9
|
+
require 'net/https'
|
9
10
|
|
10
11
|
$stdout.sync = true
|
11
12
|
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: potato
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.0.
|
5
|
+
version: 0.0.11
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Joel Taylor
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2011-04-
|
13
|
+
date: 2011-04-26 00:00:00 Z
|
14
14
|
dependencies: []
|
15
15
|
|
16
16
|
description: Potato is an IRC server that communicates with the deviantART Message Network and allows you to treat it like a regular IRC server, with support for user modes, kicks/bans, /whois-ing, etc.
|